@kaungkhantdev/create-nestjs-api
v1.1.2
Published
CLI to scaffold NestJS API starter with Prisma, JWT auth, and Swagger
Downloads
159
Maintainers
Readme
create-nestjs-api
CLI to scaffold a NestJS API starter with Prisma, JWT authentication, and Swagger.
Usage
npx @kaungkhantdev/create-nestjs-api my-appWhat's Included
- NestJS 11
- Prisma ORM with PostgreSQL
- JWT Authentication
- Swagger API Documentation
- Class Validator & Transformer
- Jest Testing Setup
- ESLint + Prettier
Quick Start
# Create new project
npx @kaungkhantdev/create-nestjs-api my-app
# Navigate to project
cd my-app
# Install dependencies
npm install
# Setup environment
cp .env.example .env
# Edit .env with your database credentials and JWT secret
# Run Prisma migrations
npm run prisma:migrate:deploy
# Generate Prisma client
npm run prisma:generate
# Start dev server
npm run start:devThe API will be available at:
- Application:
http://localhost:3000 - Swagger Documentation:
http://localhost:3000/api
Links
License
MIT
