Prerequisites:
Running locally:
-
Create
.env
file:cp .env.example .env
- You may need to fill/change some variables
-
Launch postgres:
yarn start:docker
- After finishing development, you can shut down the containers by running
yarn stop:docker
- After finishing development, you can shut down the containers by running
-
Wait for docker containers to start up
-
Create and migrate the database:
yarn prisma migrate dev
- You must run this command every time you make changes to
prisma/schema.prisma
- You must run this command every time you make changes to
-
Run the application in watch mode:
yarn start:dev
-
Congratulations! Now you can access the API on
http://localhost:5050
Swagger UI - /api
OpenAPI JSON - /api-json