A simple CRUD REST API using NestJS, MongoDB and Mongoose.
git clone https://github.com/icaru12/nestjs-mongodb-crud.git
cd nestjs-mongodb-crud
npm install
npm run start:dev
# 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
# Install Nest CLI globally if you don't already have it installed
npm install -g @nestjs/cli
nest new nestjs-mongodb-crud
cd nestjs-mongodb-crud
npm i @nestjs/mongoose mongoose
npm i @nestjs/mapped-types
npm i class-validator class-transformer
nest g module users
nest g service users
nest g controller users