AI SaaS Starter Template
A modern AI SaaS starter template with Next.js, Shadcn UI, Clerk Auth, Stripe, and Turso DB.
Features
- 🚀 Next.js 15 with App Router
- 💅 Shadcn UI for beautiful, accessible components
- 🔒 Clerk Authentication
- 💳 Stripe Integration for subscriptions
- 📊 Turso Database with Drizzle ORM
- 🌙 Dark mode with next-themes
- 🔔 Toast notifications with Sonner
- 📱 Fully responsive design
- 🔍 SEO optimized
- 🧩 TypeScript for type safety
- 🧪 ESLint for code quality
Getting Started
Using the template
bunx create-next-app@latest -e https://github.com/yourusername/ai-saas-starter
# or
npx create-next-app@latest -e https://github.com/yourusername/ai-saas-starter
Setup environment variables
- Copy the
.env.example
file to .env.local
- Fill in the required environment variables:
- Clerk Authentication keys
- Stripe API keys
- Turso Database credentials
Install dependencies
bun install
# or
npm install
Run the development server
bun dev
# or
npm run dev
Open http://localhost:3000 with your browser to see the result.
Database Setup
This template uses Turso with Drizzle ORM. To set up your database:
# Push schema to database
bun db:push
# Generate migrations
bun db:generate
# Run migrations
bun db:migrate
# Open Drizzle Studio
bun db:studio
Deployment
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the Next.js deployment documentation for more details.
License
MIT