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.
- Frontend: Next.js, Tailwind, Shadcn, Framer Motion
- Backend: PostgreSQL, Drizzle, Server Actions
- Auth: Clerk
- Payments: Stripe
- 🔐 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
You will need accounts for the following services:
- Clerk for authentication
- Supabase or any PostgreSQL database
- Stripe for payment processing
- Vercel (optional, for deployment)
- Clone this repository
git clone https://github.com/gziz/saas-template
cd saas-template- Install dependencies
npm install- Set up environment variables
Copy the .env.example file to .env.local and fill in your credentials:
cp .env.example .env.local- Run the development server
npm run dev- Open http://localhost:3000 in your browser
This boilerplate uses Drizzle ORM with PostgreSQL. To set up your database:
- Create a PostgreSQL database
- Update your database connection string in
.env.local - Generate and run migrations:
npm run db:generate
npm run db:migrateThis application can be easily deployed to Vercel:
This project is licensed under the MIT License - see the LICENSE file for details.