A yeoman generator for nestjs apps.
This generator helps you create a NestJS app with ease. It also comes with support for the following
- Decorators
- Exceptions
- Guards
- Interceptors
- Middlewares
- Modules
NestJS app options available
- SQL Typeorm app
- Mongoose app
- Seqelize app
- Passport app
- Graph QL apollo app
- Mongo Typeorm app
- Configurable Mongoose app
Install dependencies
$ npm install -g yo
$ npm install -g generator-nestjs-app
The to create an app, run
$ yo nestjs-app
For other components run
$ yo nestjs-app:[COMPONENT] [NAME]
For example
$ yo nestjs-app:middleware app-auth
$ yo nestjs-app:decorator roles
--skip-install
- Skips installation of dependencies when bootstrappping an app
--npm
- Install dependencies with npm
--yarn
- Install dependencies with yarn
[COMPONENT]
- The type of the component to be created
[NAME]
- The name of the component to be created
[NAME]
- The name of the module to be created (required)
ARGUMENTS
--mongoose-module
--sequelize-module
--sql-typeorm
--mongo-typeorm
--graphql-module
By Angular File Naming Convention, names for components should be in kebab case. For example
yo nestjs-app:decorator app-user-routes
This creates a decorator with filename app-user-routes.decorator.ts
decorator name AppUserRoutesDecorator
Contributions and filing of issues are gladly welcome. Before contributing, be sure to read the CONTRIBUTING GUIDE
-
For making pull requests, you can use the PR template
-
For submitting, you can use the ISSUES template