
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fixβa new CLI tool that turns CVE alerts into safe, automated upgrades.
scaffold-nestjs
Advanced tools
This generator will help you create a Nest.js application. You just need to answer the questions and get a ready-made application template.
First, generate your new project:
npx scaffold-nestjs
Run your generated application:
cd <project name>
docker-compose up -d
Options | Description | Example |
---|---|---|
skip-install | This option disables installation of dependencies after code generation. | npx scaffold-nestjs --skip-install |
no-interactive | This option disables answering questions in interactive mode. | npx scaffold-nestjs --no-interactive |
project | This option allows you to set the name of the project (default is nest-js-project). | npx scaffold-nestjs --project-name=nest-js-project |
should-overwrite | This option allows you to overwrite an existing folder. | npx scaffold-nestjs --should-overwrite |
database | This option allows you to set the database. Allowed values: mongo , mysql or postgres . | npx scaffold-nestjs --database=mongo |
orm | This option allows you to set the orm. Allowed values for MongoDB: mongoose or prisma .Allowed values for MySql and Postgres: prisma , mikroorm or typeorm . | npx scaffold-nestjs --orm=mongoose |
no-need-auth | This option disables the generation of authorization components. | npx scaffold-nestjs --no-need-auth |
auth | This option allows you to set the authorization option. Allowed values: jwt . | npx scaffold-nestjs --auth=jwt |
services | This option allows you to add various services to the project. Allowed values: keycloak , minio , novu . | npx scaffold-nestjs --services=keycloak,minio |
For example:
npx scaffold-nestjs --no-interactive \
--should-overwrite \
--project-name=nest-js-project \
--database=mongo \
--orm=mongoose \
--services=keycloak,novu
βββ src
β βββ database
β β βββ migrations
β β β βββ ...
β β βββ database.config.ts
β β βββ database-factory.service.ts
β βββ decorators
β β βββ auth-bearer.decorator.ts
β β βββ auth.decorator.ts
β β βββ roles.decorator.ts
β β βββ serialization.decorator.ts
β βββ exceptions
β β βββ validation.exceptions.ts
β βββ filters
β β βββ all-exceptions.filter.ts
β β βββ bad-request-exception.filter.ts
β β βββ forbidden-exception.filter.ts
β β βββ index.ts
β β βββ not-found-exception.filter.ts
β β βββ unauthorized-exception.filter.ts
β β βββ validation-exceptions.filter.ts
β βββ guards
β β βββ jwt-access.guard.ts
β β βββ jwt-refresh.guard.ts
β β βββ roles.guard.ts
β βββ interceptors
β β βββ serialization.interceptor.ts
β β βββ wrap-response.interceptor.ts
β βββ interfaces
β β βββ exception-response.interface.ts
β βββ modules
β β βββ auth
β β β βββ dtos
β β β β βββ jwt-token.dto.ts
β β β β βββ refresh-token.dto.ts
β β β β βββ login.dto.ts
β β β β βββ signup.dto.ts
β β β βββ interfaces
β β β β βββ decoded-user.interface.ts
β β β β βββ jwt-strategy-validate.interface.ts
β β β β βββ login-payload.interface.ts
β β β β βββ validate-user-output.interface.ts
β β β βββ strategies
β β β β βββ jwt-access.strategy.ts
β β β β βββ jwt-refresh.strategy.ts
β β β β βββ public.strategy.ts
β β β βββ auth.controller.ts
β β β βββ auth.module.ts
β β β βββ auth.repository.ts
β β β βββ auth.service.ts
β β βββ user
β β βββ dtos
β β β βββ update-user.dto.ts
β β β βββ user-response.dto.ts
β β βββ user.entity.ts
β β βββ user.controller.ts
β β βββ user.module.ts
β β βββ user.repository.ts
β β βββ user.service.ts
β βββ shared
β β βββ services
β β β βββ api-config.service.ts
β β β βββ keycloak.service.ts
β β β βββ minio.service.ts
β β β βββ novu.service.ts
β β βββ shared.module.ts
β βββ app.module.ts
β βββ main.ts
βββ .dockerignore
βββ .env
βββ .eslintrc.js
βββ .gitignore
βββ .prettierrc
βββ docker-compose.yml
βββ Dockerfile
βββ nest-cli.json
βββ package.json
βββ README.md
βββ tsconfig.build.json
βββ tsconfig.json
Swagger documentation will be available on route:
http://localhost:3000/api
FAQs
Boilerplate generator for Nest.js
The npm package scaffold-nestjs receives a total of 5 weekly downloads. As such, scaffold-nestjs popularity was classified as not popular.
We found that scaffold-nestjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fixβa new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
Weβre excited to announce a powerful new capability in Socket: historical data and enhanced analytics.