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 keyBETTER_AUTH_URL - Your app URL (http://localhost:3000 for dev)STRIPE_KEY - Stripe publishable keySTRIPE_WEBHOOK_SECRET - Stripe webhook secretRESEND_API_KEY - Resend API key for emailsRunning 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 serverpnpm build - Build for productionpnpm start - Run production serverpnpm lint - Run ESLintpnpm typecheck - Run TypeScript checks