π 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
Top comments (0)