New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-enterprise-nestjs

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-enterprise-nestjs

Enterprise NestJS boilerplate generator

latest
Source
npmnpm
Version
1.0.15
Version published
Maintainers
1
Created
Source

create-enterprise-nestjs

Enterprise-grade NestJS boilerplate generator with three-layer architecture.

Installation

npm install -g create-enterprise-nestjs

Usage

npx create-enterprise-nestjs my-app

Or with project name:

npx create-enterprise-nestjs my-app

Generated Project Setup

After generating your project, you have two options:

cd my-app

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your database configuration

# Start Docker services
npm run docker:up

# Setup database
npm run db:create
npm run db:migrate

# Enable DatabaseModule in src/app.module.ts
# Uncomment: DatabaseModule, // Uncomment after setting up database configuration

# Start development server
npm run start:dev

Option 2: Local Database Installation

If you prefer to install MySQL/PostgreSQL locally:

cd my-app

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your local database configuration
# Update DB_HOST to 'localhost' or your database host

# Install and configure your database locally
# Then create the database manually or use:
npm run db:create
npm run db:migrate

# Enable DatabaseModule in src/app.module.ts
# Uncomment: DatabaseModule, // Uncomment after setting up database configuration

# Start development server
npm run start:dev

Note: Docker commands will gracefully fail if Docker is not available, allowing you to use local database installations instead.

Features

  • Three-layer architecture (Controller → Service → Repository)
  • JWT authentication with role-based access control
  • Sequelize ORM with MySQL/PostgreSQL support
  • Swagger/OpenAPI documentation
  • Winston logging with file rotation
  • Docker Compose setup
  • TypeScript strict mode
  • Enterprise-grade error handling

Generated Structure

my-app/
├── src/
│   ├── common/          # Shared utilities
│   ├── config/         # Configuration
│   ├── database/        # Sequelize setup
│   └── modules/        # Feature modules
├── docker-compose.yml
└── package.json

License

MIT

Keywords

nestjs

FAQs

Package last updated on 21 Nov 2025

Did you know?

Socket

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.

Install

Related posts