Skip to content

NestJs Micro-service Kit is a boilerplate code to quickly setup a service without dealing with extra configurations.

License

Notifications You must be signed in to change notification settings

MRdevX/nestjs-microservice-kit

Repository files navigation

Nest Logo

NestJs Micro-service Kit is a boilerplate code to quickly setup a service without dealing with extra configurations.

Package License

Installation

$ 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

Features

  • Generic CRUD: Generic CRUD Controller and Service
  • SQL database: PostgreSQL object data modeling using TypeORM
  • Testing: unit and integration tests using Jest
  • Error handling: centralized error handling mechanism
  • API documentation: with Swagger
  • Security: set security HTTP headers using helmet
  • CORS: Cross-Origin Resource-Sharing enabled using cors
  • Docker support
  • Git hooks: with husky and lint-staged
  • Linting: with ESLint and Prettier
  • Editor config: consistent editor configuration using EditorConfig

License

NestJs Micro-service Kit is MIT licensed.