๐ 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









