This is the submission for a code challenge. Read the instructions here.
Shift Pro MAX API
- Node 18
- Docker (PostgreSQL)
In order to run the project, you need to run the following commands:
mv .env.example .env
npm ci
npm run buildIn order to have some seed data, you need to run the following commands:
npm run db:up # Remove the -d flag in order to avoid running in background
npm run prisma:init if you don't want seed data, add the --skip-seed flag to the prisma:init command:
npm run prisma:init -- --skip-seedIn order to start the project, you need to run the following command:
npm run startThere is a swagger documentation available at http://localhost:3000/api-docs
For development, you can run the following command:
npm run devFor running tests, you can run the following command:
npm run testIf you want to run an specific test, you can run the following command:
npm run test:unitor
npm run test:integrationIn order to run integration tests, you need a database up and running