https://github.com/adrianhajdin/saas-template
SaaS Starter Template built with Next.js, Supabase & Clerk. Includes seamless auth, manage subscriptions and payments out of the box, and scale faster with a clean, reusable codebase β everything you need to kickstart your SaaS.
https://github.com/adrianhajdin/saas-template
clerk nextjs stripe supabase tailwind typescript
Last synced: about 1 month ago
JSON representation
SaaS Starter Template built with Next.js, Supabase & Clerk. Includes seamless auth, manage subscriptions and payments out of the box, and scale faster with a clean, reusable codebase β everything you need to kickstart your SaaS.
- Host: GitHub
- URL: https://github.com/adrianhajdin/saas-template
- Owner: adrianhajdin
- Created: 2025-07-28T13:38:18.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-07-28T13:46:26.000Z (2 months ago)
- Last Synced: 2025-08-28T11:10:30.850Z (about 1 month ago)
- Topics: clerk, nextjs, stripe, supabase, tailwind, typescript
- Language: TypeScript
- Homepage:
- Size: 1.48 MB
- Stars: 61
- Watchers: 0
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
![]()
![]()
![]()
![]()
SaaS App - LMS with Next.js, Supabase & Payments
Build this project step by step with our detailed tutorial on JavaScript Mastery platform. Join the JSM family!
## π Table of Contents
1. π€ [Introduction](#introduction)
2. βοΈ [Tech Stack](#tech-stack)
3. π [Features](#features)
4. π€Έ [Quick Start](#quick-start)
5. π [Assets](#links)
6. π [More](#more)## π¨ Tutorial
This repository contains the code corresponding to an in-depth tutorial available on our Platform, JS Mastery Pro.
Supercharge your SaaS app launch with this high-powered template β packed with built-in user auth, subscriptions, and payments using Next.js, Supabase, and Stripe! Hit the ground running and turn your idea into reality faster than ever.
If you're getting started and need assistance or face any bugs, join our active Discord community with over **50k+** members. It's a place where people help each other out.
- **[Clerk](https://jsm.dev/converso-clerk)** is a unified platform for authentication, user management, and billing. It offers embeddable UI components, flexible APIs, and admin dashboards for secure user management. Clerk also simplifies subscription management, allowing you to define plans, create pricing pages, and control access based on subscription tiersβall in one solution.
* **[Next.js](https://nextjs.org/)** is a powerful React framework that enables the development of fast, scalable web applications with features like server-side rendering, static site generation, and API routes for building full-stack applications.
* **[shadcn/ui](https://ui.shadcn.com/)** is a customizable component library built on Radix UI and Tailwind CSS. It offers a modern, accessible design system with pre-built components that are easy to theme and extend, making it ideal for building polished UIs with minimal effort.
- **[Supabase](https://supabase.com/)** is an open-source backend-as-a-service platform that provides instant APIs, real-time subscriptions, authentication, storage, and a PostgreSQL database, enabling developers to build scalable and secure applications with ease.
* **[Tailwind CSS](https://tailwindcss.com/)** is a utility-first CSS framework that allows developers to design custom user interfaces by applying low-level utility classes directly in HTML, streamlining the design process.
* **[TypeScript](https://www.typescriptlang.org/)** is a superset of JavaScript that adds static typing, providing better tooling, code quality, and error detection for developers, making it ideal for building large-scale applications.
* **[Zod](https://zod.dev/)** is a TypeScript-first schema validation library that provides a simple and expressive way to define and validate data structures. Zod ensures data integrity by catching errors early during development.
π **Authentication**: Secure user sign-up and sign-in with Clerk; Google authentication and many more.
π **Billing & Subscriptions**: Easily manage plans, upgrades, and payment details.
π **Code Reusability**: Leverage reusable components and a modular codebase for efficient development.
π **Cross-Device Compatibility**: Fully responsive design that works seamlessly across all devices.
π **Database Integration**: Uses Supabase for real-time data handling and storage needs.
π **No opinionated UI**: Easily bring your own style to the app, without the need for removing leftover styles.
π **Scalable Tech Stack**: Built with Next.js for a fast, production-ready web application that scales seamlessly.
Follow these steps to set up the project locally on your machine.
**Prerequisites**
Make sure you have the following installed on your machine:
- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/en)
- [npm](https://www.npmjs.com/) (Node Package Manager)**Cloning the Repository**
```bash
git clone https://github.com/JavaScript-Mastery-Pro/saas-template.git
cd saas-template
```**Installation**
Install the project dependencies using npm:
```bash
npm install
```**Set Up Environment Variables**
Create a new file named `.env` in the root of your project and add the following content:
```env
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL=/
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL=/# Supabase
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
```Replace the placeholder values with your actual Supabase and Clerk credentials. You can obtain these by signing up on: [Supabase](https://supabase.com/dashboard), [Clerk](https://jsm.dev/converso-clerk).
**Running the Project**
```bash
npm run dev
```Open [http://localhost:3000](http://localhost:3000) in your browser to view the project.
## π Assets
You can find the example database schema in the root of this repository.
## π More
**Advance your skills with Next.js Pro Course**
Enjoyed creating this project? Dive deeper into our PRO courses for a richer learning adventure. They're packed with
detailed explanations, cool features, and exercises to boost your skills. Give it a go!