This is a boilerplate to quickly get SaaS projects up and running, without worrying about the initial setup and things like auth and subscriptions. It was built with Next.js (pages router), Prisma, Stripe, and Mantine. It uses a PostgreSQL database and is deployed on Vercel.
The goal is to simply clone this repo, set up your environment variables, and start building the features of your SaaS project, rather than configuring auth, subscriptions, and other boilerplate for days.
- A landing page: With a hero section, features, testimonials, and pricing.
- Authentication: Sign up, sign in, sign out, forgot password, and update user info.
- Subscriptions: Create, update, and cancel subscriptions with Stripe.
- User settings: Update user info, change password, and delete account.
- Emails: Send emails with nodemailer and react-email.
- SEO: Meta tags, sitemap, and robots.txt.
- Analytics: Google Analytics.
- Logging: Sentry for error tracking.
- Clone the repo:
git clone
- Install dependencies:
npm install
- Set up your environment variables:
.env
(see.env.example
) - Spin up a local PostgreSQL database:
docker-compose up -d
- Run the migrations:
npx prisma migrate dev
- Start the dev server:
npm run dev
- Visit
http://localhost:3000