$ npm install
$ docker-compose -f docker-compose-local.yml up -d postgres
$ docker-compose -f docker-compose-local.yml up -d postgres-test
$ prisma migrate deploy
If you want to update the database structure, apply changes to prisma.schema
then run
$ prisma migrate dev --name ${NAME_OF_THE_MIGRATION}
To clear the database and fill it with the test data run
$ prisma migrate reset
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
Before running tests make sure test container is up.
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov