Build with love and passion with NestJs and 12factor.net, Also support kind of project for Clean Architect from https://github.com/VincentJouanne/nest-clean-architecture
In case you love this also, so you can:
First, install Yeoman and generator-nestjs-service using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-nestjs-service
Then generate your new project:
yo nestjs-service
Generate new module:
yo nestjs-service:module [module-name] # require run from root nestjs project
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
- This generator has 4 kinds (for first release I just support the standalone one, the others will come later) of project structure and 3 kinds of module structure.
- In each structure, you will found the README.md which describes the structure detail.
- [x] standalone app
- [x] microservice
- [ ] hybrid app
- [ ] clean architect
- [x] default controller
- [x] default dto request/response/response with paging
- [x] default service
- [x] default entity (with TypeORM)
- [x] default schema (with Mongoose)
- [x] default controller
- [x] default dto request/response/response with paging
- [x] default service
- [x] default entity (with TypeORM)
- [x] default schema (with Mongoose)
- [x] default decorator
- [x] default exception
- [x] default guard
- [x] default interceptor
- [x] default middleware
- [x] default pipe