This is a coding challenge project for GetSetup Backend Role
-
Usual NPM install
npm i
-
Create an env file for development
cp .env.sample .env.development
-
Initialize a dev database
npm run migrate:dev
-
Check database by using prisma studio
npm run prisma-studio:dev
It should show 2 guides and 0 availabilities.
-
Run the dev server
npm run dev
Access swagger docs http://localhost:3001/api/v1/docs
-
Run tests
Initialize the test database
npm run migrate:test
Verify that all tests are passing
npm run test