Get Started

NextSupaSaaS is an all-in-one SaaS boilerplate for rapidly building modern applications.

Build your SaaS and Launch in a day 🚀

This documentation will guide you through setting up and customizing the boilerplate to help you quickly launch your SaaS application. Just follow the steps below to begin.

Built-in Features

NextSupaSaaS comes pre-equipped with all the essential features you need to get started right away:

Authentication

Google OAuth and Credential-based integration

Payments

Stripe-powered subscriptions and checkout experience

Database

MongoDB database managed through Prisma ORM

Emails

Transactional emails via Resend with customizable React templates

Storage

Effortless file and image storage using AWS S3

Install Dependencies

npm install

App Config File

  • The src/config.ts file is where you configure your app.
  • Each key/property is explained, so read it carefully—it's important for your app.

Environment Variables

  • Rename the .env.example file to .env
  • Configure all environment variables according to your setup (Database, Storage, Payments, etc.)

.env.example

AUTH_URL="http://localhost:3000"

# Generate SECRET using this https://auth-secret-gen.vercel.app/
AUTH_SECRET=""

DATABASE_URL=""

AUTH_GOOGLE_ID=""
AUTH_GOOGLE_SECRET=""

AUTH_RESEND_KEY=""

AWS_S3_REGION=""
AWS_S3_BUCKET_NAME=""
AWS_S3_ACCESS_KEY=""
AWS_S3_SECRET_KEY=""

STRIPE_SECRET_KEY=""
STRIPE_PUBLIC_KEY=""
STRIPE_WEBHOOK_SECRET=""

Migrate the Database

npm run db:generate # Generate the migrations
npm run db:push # Apply changes to the database

Run Development Server

Open http://localhost:3000 in your browser to see the app in action.

npm run dev