This is a starter kit for NestJS projects. It includes the following:
README.md
file with a description of the project and how to run it/api
$ npm install
Copy the .env.example
file to .env
and fill in the values.
# start the database
$ docker-compose up -d
# start the app in development mode
$ npm run start:dev
Copy the .env.prod.example
file to .env.prod
and fill in the values.
Uncomment the nestjs-app
service, change .env to .env.prod for databaes service in docker-compose.yml and run the following command:
!!! danger Make sure that you have wrote the migrations for the database otherwise the app will not have the correct tables
# run docker build
$ docker-compose up -d --build
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov