Nestjs framework test task
You can read the specification here
npm install
- Copy
.env.example
as.env
file - Set values in
.env
based on environment specifics (nothing needs to be changed if using Docker Compose)
-
Up Docker Containers
docker-compose up -d
-
Run DB migrations
docker compose run api npm run typeorm:run-migrations
# run migrations
$ npm run typeorm:run-migrations
# development
$ npm run start
# watch mode
$ npm run start:dev
# debug mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov