- nvm
- node v16.8
- yarn v1.22
- Docker Desktop
yarn setup
- modules/backend
- Copy .env.sample to .env
yarn db:setup
yarn db:start
yarn db:reset
yarn db:seed
yarn start
- modules/frontend
- Copy /env/.env.sample to /env/.env.local
yarn start
Whenever you make changes to the API on the backend, the interface on the frontend also needs to be updated. The project uses a combination of Swagger to generate the OpenAPI specifications, and swagger-typescript-api to generate the frontend client.
- Make changes to API
- Start your server and navigate to localhost:4000/swagger/docs
- Test your API and ensure it's running correctly
- Navigate to
modules/frontend
and runyarn build:api-client
- The frontend API client should contain the new endpoint