Showing tactical design patterns inside a NestJS application.
$ yarn install
To set up the database with a small initial dataset you have to build the docker image for the database migrations. The image includes a script to seed the database.
$ cd prisma
$ docker build -t planning_db_migrate .
$ docker-compose up -d
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
$ yarn run test
$ yarn run test:cov
Make sure to run all docker containers before executing the e2e tests.
$ yarn test:e2e --runInBand --forceExit
Reset the database after the test run.
$ yarn db:migrate:reset
To take down all containers and get rid of all volumes.
$ docker-compose down --volumes