1.1.0 • Published 2 years ago

generator-nestjs-service v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

generator-nestjs-service

Introduction

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:

"Buy Me A Coffee"

Installation

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

Getting To Know Yeoman

  • 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.

Getting to Know Project Structure

  • 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.

Check List

Project structure supports

  • standalone app
  • microservice
  • hybrid app
  • clean architect

Module structure support

Clean Architect - TBD

Basic - Minimal

  • default controller
  • default dto request/response/response with paging
  • default service
  • default entity (with TypeORM)
  • default schema (with Mongoose)

Basic - Full

  • default controller
  • default dto request/response/response with paging
  • default service
  • default entity (with TypeORM)
  • default schema (with Mongoose)
  • default decorator
  • default exception
  • default guard
  • default interceptor
  • default middleware
  • default pipe

Change Log

License

MIT - https://opensource.org/licenses/MIT