Skip to content

A basic starterkit for SaaS applications to ship fast

Notifications You must be signed in to change notification settings

SeaRoll/saas-starterkit

Repository files navigation

SaaS Starter Kit

I was bored, so I created a starter kit for SaaS projects with some basic features to get you started.

Features

  • NextJS (Latest)
  • Tailwind CSS
  • Database (SQLite, Prisma)
  • User authentication/authorization (Better Auth) & Admin privileges
  • Subscription-based payments (Stripe)
  • E-mail notifications (Nodemailer)

Getting Started

# 1. install dependencies
npm install

# 2. create a .env file
cp .env.example .env

# 3. create a database
npx prisma db push

# 3. run the development server
npm run dev

# 4. create migrations
npm run migrate:dev

# 5. generate client
npm run generate

Deploying (via docker)

# 1. create a .env.prod file
cp .env.example .env.prod

# 2. (optional) create a clean db image (creates a clean db image)
DATABASE_URL=file:<matching-prod-path>/prod.db npm run migrate:db # I recommend $PWD/data/prod.db

# 3. deploy app
npm run deploy:app

About

A basic starterkit for SaaS applications to ship fast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published