- Install packages:
yarn && yarn --cwd client && yarn --cwd server
- Add environment variables to
server/.env
:
echo JWT_SECRET=aaaaa >> server/.env
-
Start MongoDB locally (install MongoDB if you haven't already).
-
Start the client development and backend development servers:
yarn dev
The frontend can be reached at http://localhost:3000/ and the backend will be at http://localhost:4000/. Swagger documentation can be viewed at http://localhost:4000/docs.
After installing packages, run yarn test
from the root directory to run both client and server tests.
- Create a new branch (choose a group out of
feature/
,chore/
,refactor/
):
git checkout -b feature/myfeature
-
Add and commit your changes.
-
Run the linter:
yarn precommit
- Push changes to remote:
git push origin feature/myfeature
- Make a pull request, outlining a summary of your commits and changes.