Skip to content

Latest commit

 

History

History
98 lines (67 loc) · 2.12 KB

README.md

File metadata and controls

98 lines (67 loc) · 2.12 KB

⭐ Next JS - SaaS Starter Kit

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 😀

🛠️ Built With

🛠️ Lets Get Going !

Prerequisites

  • Node.js (Version: >=18.x)
  • NPM

Dev

1. Setup

  • 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

2. Go to the project folder

cd BoilerplateSaas

3. Install dependencies

npm install

4. Set up your .env file

Duplicate .env.sample to .env.

cp .env.sample .env

5. Set up your env variables.

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)

6. Set up prisma database schema

npx prisma db push

5. Start the server

In a development environment:

npm run dev

8. Start the Prisma Studio

Prisma Studio is a visual editor for the data in your database.

npx prisma studio

Features

  • 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

➡️ Coming Soon

  • Billing & subscriptions
  • Unit and integration tests