Quick Start

Get your SaaS application up and running in minutes with our comprehensive boilerplate.

Prerequisites

Required Software

Make sure you have these tools installed on your system

Node.js

Version 18.17 or later (recommended: latest LTS)

pnpm

Latest version for package management

Git

For version control

Code Editor

VS Code recommended with our extensions

Installation

Clone and Install

Get the boilerplate code and install dependencies

$ git clone https://github.com/your-repo/saas-boilerplate.git

$ cd saas-boilerplate

$ pnpm install

Environment Setup

Configure Environment Variables

Set up your environment variables for authentication, database, and payments

1. Copy Environment Template

$ cp .env.example .env.local

2. Required Variables

BETTER_AUTH_SECRET - Your auth secret key
BETTER_AUTH_URL - Your app URL (http://localhost:3000 for dev)
STRIPE_KEY - Stripe publishable key
STRIPE_WEBHOOK_SECRET - Stripe webhook secret
RESEND_API_KEY - Resend API key for emails

Running the Application

Start Development Server

Run the development server and start building your SaaS

$ pnpm dev

Your application will be available at http://localhost:3000

Available Commands

pnpm dev - Start development server
pnpm build - Build for production
pnpm start - Run production server
pnpm lint - Run ESLint
pnpm typecheck - Run TypeScript checks