🚀 Installation & Setup Guide

Step-by-step instructions to install and configure your SaaS boilerplate from scratch.

By Test Staff34 views

Installation Guide

Prerequisites

  • Node.js 18+
  • PostgreSQL database
  • Git
  • Code editor (VS Code recommended)

Step 1: Clone Repository

git clone [YOUR_REPO_URL] my-saas
cd my-saas
npm install

Step 2: Environment Variables

Create .env file:

cp .env.example .env

Required variables:

  • DATABASE_URL - PostgreSQL connection
  • NEXTAUTH_URL - Your domain
  • NEXTAUTH_SECRET - Generate with openssl rand -base64 32
  • BOILERPLATE_LICENSE_KEY - Your license key

Step 3: Database Setup

npx prisma generate
npx prisma db push
npx prisma studio

Step 4: Create Admin User

Via Prisma Studio or seed script.

Step 5: Configure Services

  • Stripe: Add API keys + create products
  • SendGrid: Add API key + verify domain
  • OAuth: Configure Google/GitHub providers
  • AI Providers: Add at least one (Gemini recommended)

Step 6: Start Development

npm run dev

Visit http://localhost:3000

See the License Key Guide for activation instructions.

Was this article helpful?

Let us know so we can improve our docs

🚀 Installation & Setup Guide - Help Center