Skip to content

Nest.js API - rest CRUD, MongoDB, Typescript, Docker,

Notifications You must be signed in to change notification settings

fabiofanta/nestjs-API-crud

Repository files navigation

Installation and Running the Nest.js app with Docker

$ sudo docker-compose up --build

Installation without Docker

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Settings

  • Insert JWT secret key on src/constants.ts

OpenAPI Swagger Documentation

Info

DockerFile also run a seeder that seeds MongoDB Database with mockup data (src/seed/seed.ts), in order to test the app.

  • To log in to ACME Corporation from mockup data, as admin use these credentials : user:[email protected] pw:passeasy
  • To log in to Technology ARC from mockup data, as admin use these credentials : user:[email protected] pw:passpol