A little API built with NestJs.
Simple Node.js API built with NestJs. Built originally to provide Applaudo Angular trainees with a backend service to consume.
$ npm install
Check the example.env file to know the required env variables.
# DB
DATABASE_URL=database url
# AUTH
ACCESS_TOKENS_SECRET=access tokens secrets
ACCESS_TOKENS_LIFETIME=access tokens lifetime
REFRESH_TOKENS_SECRET=refresh tokens lifetime
REFRESH_TOKENS_LIFETIME=refresh tokens lifetime
# NODE.JS
NODE_ENV=common Node.js flag
Then create your own .env
file and replace the example values.
# development
$ npm run start
# watch mode
$ npm run start:dev
# debug mode
$ npm run start:debug
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov