NestJS example REST API with Swagger integration.
Once the app is started, go to http://localhost:<port>/docs/ to view the Swagger docs
Two folder structures are available:
$ npm installCreate Postgres database and set the following environment variables to the appropriate values:
PG_HOSTPG_DATABASEPG_USERPG_PASSWORDPG_PORT
Configure the PORT environment variable to chnage the Port that the app listens on (default 3001)
# compile app
$ npm run buld
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# lint plus unit tests
$ npm test
# unit tests only
$ npm run test:unit
# integration tests
$ npm run test:integration