🚀 Create Quick Nest
A Quick Setup for NestJS 11 + Prisma 7 + PostgreSQL backend in seconds.
The fastest way to start a NestJS + Prisma database project. Skip boilerplate, skip setup start building real features in minutes.
Create your project instantly:
bunx quick-nest my-app
# or
npx quick-nest my-app
npm/bun pacakge :https://www.npmjs.com/package/quick-nest
Your NestJS + Prisma database is ready to go.
✨ Features
- 🏗️ NestJS 11 — Modern, opinionated Node.js framework
- 🗄️ Prisma ORM v7 — Type-safe PostgreSQL ORM with auto-migrations
- 🐘 PostgreSQL Database — Robust relational database included
- 🔐 JWT Authentication — Register, login, and protected routes
- 📝 Todo CRUD Example — Real-world patterns you can learn from
- ⚡ Bun Runtime — Fast, modern JavaScript runtime
- 🧩 Feature-Based Architecture — Scalable folder structure
- 📦 Zero Configuration Database Setup — Migrations run automatically
- 🧬 Prisma Client Auto-Generation — Type-safe database queries out of the box
- ☁️ Production Ready — Deploy to Vercel, Railway, Render, or Docker
- 🎯 Minimal Stack — No unnecessary abstractions or bloat
📦 Generated Stack
| Technology | Version |
|---|---|
| NestJS | 11.x |
| Prisma ORM | 7.x |
| PostgreSQL | 15+ |
| TypeScript | 6.x |
| Bun | 1.2+ |
| JWT | 11.x |
| Passport | 0.7+ |
| bcrypt | 6.x |
⚡ Quick Setup: Database to Development
Get your NestJS + Prisma database running in 5 minutes.
1️⃣ Create Project
npm create quick-nest my-app
cd my-app
2️⃣ Configure Database
cp .env.example .env
Edit .env with your PostgreSQL credentials:
DATABASE_URL="postgresql://user:password@localhost:5432/quick_nest"
JWT_SECRET="your-super-secret-key-here"
3️⃣ Generate Prisma Client & Run Migrations
bunx prisma migrate dev --name init
This command:
- Generates the Prisma client
- Creates your PostgreSQL database schema
- Seeds initial tables (User, Todo)
4️⃣ Start Development Server
bun run start:dev
✅ Done. Your API is live at http://localhost:3000
🗄️ What Happens Behind the Scenes
- Prisma v7 connects to your PostgreSQL database
- User & Todo tables are created automatically
- Prisma Studio opens (optional) for data exploration
- TypeScript types are generated for all database models
🗄️ Prisma v7 & Database
Included Database Features
- Prisma ORM v7 — Latest version with performance improvements
- PostgreSQL — Production-grade relational database
- Type-Safe Queries — Full TypeScript support for all database operations
- Auto-Generated Types — Database models auto-converted to TypeScript interfaces
- Migrations — Version-controlled database schema changes
-
Prisma Studio — Visual database explorer (
bunx prisma studio)
Common Database Commands
# Generate Prisma client (auto-run after migrations)
bunx prisma generate
# Create & run migrations
bunx prisma migrate dev --name add_feature
# View database with Prisma Studio
bunx prisma studio
# Reset database (development only)
bunx prisma migrate reset
📁 Project Structure
src/
├── common/
│ ├── decorators/ # Custom decorators
│ └── guards/ # Auth guards, etc.
├── core/
│ └── prisma/ # Prisma service singleton
├── modules/
│ ├── auth/ # Register, login, JWT
│ └── todo/ # CRUD example
├── app.module.ts
└── main.ts
prisma/
├── schema.prisma # Database schema
└── migrations/ # Migration history
🔐 Included Features
Authentication
- User Registration with validation
- User Login with JWT tokens
- Password hashing (bcrypt)
- Protected route guards
- Access token generation
Database
- Prisma ORM v7 with PostgreSQL
- Type-safe queries
- Automatic migrations
- Prisma Studio for data exploration
Todo Module (Example)
- Create, read, update, delete todos
- User ownership & isolation
- Input validation
- Clean service layer
📡 API Endpoints
| Method | Route | Description |
|---|---|---|
| POST | /auth/register | Create new user |
| POST | /auth/login | Login & receive token |
| GET | /todos | List user's todos |
| GET | /todos/:id | Get single todo |
| POST | /todos | Create todo |
| PATCH | /todos/:id | Update todo |
| DELETE | /todos/:id | Delete todo |
☁️ Deployment
Optimized for:
- Vercel — Recommended for serverless
- Railway — Simple, Git-connected
- Render — Free tier available
- Fly.io — Global deployment
- Docker — Containerized deployments
- Traditional VPS — Full control
📋 System Requirements
| Tool | Version |
|---|---|
| Node.js | 22+ |
| Bun | 1.2+ |
| PostgreSQL | 15+ |
🎯 Perfect For
- Learning NestJS + Prisma + PostgreSQL — All three together
- Building NestJS databases quickly — Zero config database setup
- Prisma ORM projects — v7 best practices built in
- Backend API development — With a real database layer
- MVP & startup projects — From idea to API in minutes
- Portfolio projects — Show employers production-ready code
- Internship preparation — Learn modern NestJS patterns
- Freelance projects — Get to feature development faster
- SaaS backends — Scalable from day one
- Hackathons — Get your database layer done first
🛠 Local Development
Clone & Setup
git clone https://github.com/nabinkdl/quick-nest.git
cd quick-nest
bun install
Run Locally
bun run start my-app
Force Overwrite
bun run start my-app --force
🌱 Extensible Foundation
The starter intentionally stays minimal—perfect for learning and quick MVPs. As your app grows, easily add:
- 🔴 Redis caching
- 🐳 Docker & Docker Compose
- 🚦 Rate limiting & throttling
- 📊 Logging & monitoring
- 📨 Email services
- 📁 File uploads & storage
- 🔄 Background jobs & queues
- 🌐 WebSockets & real-time features
- 🔑 OAuth (Google, GitHub, Discord)
- 🛡️ RBAC authorization
- 📚 Swagger API docs
- 🧪 Automated testing (Jest)
- 📈 Metrics & observability
- 🏢 Multi-tenancy
📦 Package
Available on npm:
npx quick-nest my-app
Package name: quick-nest
📝 License
MIT

























