Skip to content

gziz/saas-template

Repository files navigation

SAAS Template

A modern, full-stack SAAS web application template to kickstart your next project.
This repo is a fork of Mckay's SaaS boilerplate with some minor fixes.

Tech Stack

Features

  • 🔐 Authentication & Authorization with Clerk
  • 💳 Payment processing with Stripe
  • 🗃️ Database integration with PostgreSQL and Drizzle ORM
  • 🎨 Beautiful UI components from Shadcn UI
  • 🚀 Server-side rendering with Next.js
  • 📱 Responsive design with Tailwind CSS
  • 🔄 Server actions for data mutations
  • 🌓 Light and dark mode support

Getting Started

Prerequisites

You will need accounts for the following services:

  • Clerk for authentication
  • Supabase or any PostgreSQL database
  • Stripe for payment processing
  • Vercel (optional, for deployment)

Installation

  1. Clone this repository
git clone https://github.com/gziz/saas-template
cd saas-template
  1. Install dependencies
npm install
  1. Set up environment variables

Copy the .env.example file to .env.local and fill in your credentials:

cp .env.example .env.local
  1. Run the development server
npm run dev
  1. Open http://localhost:3000 in your browser

Database Setup

This boilerplate uses Drizzle ORM with PostgreSQL. To set up your database:

  1. Create a PostgreSQL database
  2. Update your database connection string in .env.local
  3. Generate and run migrations:
npm run db:generate
npm run db:migrate

Deployment

This application can be easily deployed to Vercel:

Deploy with Vercel

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages