A little API built with NestJs.
This little API is built around a user crud to give example of common concepts like requests, responses and HTTP methods.
$ npm install
Check the example.env file to know the required env variables.
# DB
DB_USER=your db user
DB_PASSWORD=your db password
DB_HOST=your db host
DB_PORT=your db port
DB_NAME=your db name
Then create your own .env
file and replace the example values.
# development
$ npm run start
# watch 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