Prerequisites
Before you begin, make sure you have the following installed on your system:1
Node.js 18+ and pnpm
This project uses pnpm as the package manager and requires Node.js 18 or higher.
# Check your Node.js version
node --version
# Install pnpm if you don't have it
npm install -g pnpm2
PostgreSQL Database
You'll need a PostgreSQL database. We recommend using Neon DB for its simplicity and performance.
- Create a free account at neon.tech
- Create a new project
- Copy your database URL from the connection details
- Alternative: Supabase, Railway, or other PostgreSQL providers
3
Stripe Account
For payment processing, you'll need a Stripe account:
- Create an account at stripe.com
- Get your test API keys from the dashboard
- Install Stripe CLI for webhook testing (optional but recommended)
Quick Start (5 minutes)
💡 First time? Follow the detailed guides below for step-by-step
instructions. This quick start assumes you have all prerequisites ready.
1
Clone and Install
git clone <your-repository-url>
cd next-saas-boilerplate
pnpm install2
Environment Setup
# Option 1: Use the interactive CLI tool (recommended)
pnpm init:env
# Option 2: Manual configuration
cp .env.example .env.local
# Edit .env.local with your actual values3
Database Setup
pnpm db:push
pnpm db:seed⚠️ Database must be properly configured first! If you encounter UUID errors, see Database Setup Guide for required PostgreSQL extensions.
4
Start Development
pnpm devhttp://localhost:3000What You'll Have After Setup
Once setup is complete, your application will include:Ready-to-Use Features
- User registration and login with email verification
- Multiple authentication providers (Google, GitHub, etc.)
- Subscription plans with Stripe checkout
- Organization creation and team management
- Admin panel for managing users and content
- Email notifications working out of the box
Demo Users & Data
The seed script creates demo data you can use immediately:Super Admin: admin@example.com / password123
Regular User: user@example.com / password123
Demo Organization: "Acme Corp" with sample projects
Essential Commands
pnpm dev # Start development server
pnpm db:studio # Open database GUI
pnpm db:reset-seed # Reset demo dataNext Steps
🎉 Congratulations! Your SaaS application is now running. Here's what to
explore next:
Detailed Guides
- Installation Guide - Detailed setup with troubleshooting
- Environment Setup - CLI tool and manual configuration
- Database Setup - PostgreSQL and Neon DB setup
Try the App
- Register a new user account
- Create an organization
- Test subscription plans
- Access admin panel (
admin@example.com) - Explore features and functionality
🚀 Problems? Check logs in terminal or review the detailed installation guide for troubleshooting.