The Open Source Next.js SaaS boilerplate accelerates your startup journey by seamlessly integrating Stripe, NextAuth, and Resend. This powerful combination not only ensures a robust foundation for your project but also propels your startup off the ground swiftly, providing the essential tools for a successful launch.
Please star ⭐ the repo 😀
- Node.js (Version: >=18.x)
- NPM
- Fork the repository
- Clone the repository by using this command:
git clone https://github.com/<your_github_username>/https://github.com/leighbriody?tab=repositories.git
cd BoilerplateSaas
npm install
Duplicate .env.sample
to .env
.
cp .env.sample .env
You will need a next auth secret key. A google cloud console key. A Stripe product key. You will need a database url (I reccomend planetscale for the DB)
npx prisma db push
In a development environment:
npm run dev
Prisma Studio is a visual editor for the data in your database.
npx prisma studio
- Create account
- Sign in with Google [Setting up Google OAuth]
- Directory Sync (SCIM)
- Protected routes for users
- Produce prices using stripe
- Manage stripe subscription billing.
- Determine if a user has as subscription or not.
- Dark mode
- Billing & subscriptions
- Unit and integration tests