A modern, Next.js Saas boilerplate with comprehensive authentication built on Better Auth, featuring a beautiful UI with shadcn/ui components and a robust tech stack.
- Better Auth UI - Pre-built authentication components
- shadcn/ui - Beautiful, accessible component library
- Stripe - Payment Provider
- Biome - Fast linter and formatter
- Turborepo - Monorepo build system
- PostgreSQL - Robust, production-ready database
- Drizzle ORM - Type-safe database queries
- UploadThing - Modern file uploads with built-in storage
- Resend - Transactional email service
- landing page
- Authentication with Better Auth
- Dashboard
- Stripe Payment
git clone https://github.com/indieceo/Indiesaas
cd indiesaasnpm install
# or
pnpm installCopy .env.example to .env.local and update the variables.
cp .env.example .env.localGenerate the authentication schema and run migrations:
# Generate Better Auth schema
npx @better-auth/cli generate
# Generate Drizzle migrations
npx drizzle-kit generate
# Run migrations
npx drizzle-kit migratenpm run dev
# or
pnpm devKey configuration and structure files:
src/
├── app/ # Next.js app directory
│ ├── (marketing)/ # Marketing pages
│ ├── auth/ # Authentication pages
│ ├── dashboard/ # Dashboard pages
│ └── api/ # API routes
├── components/ # React components
│ ├── layout/ # Layout components
│ └── ui/ # shadcn/ui components
├── config/
│ └── site.ts # Site configuration
├── lib/
│ ├── auth.ts # Better Auth configuration
│ └── payments/ # Stripe payment logic
├── database/
│ ├── db.ts # Database connection
│ └── schema.ts # Database schema
└── styles/ # Global styles
drizzle.config.ts # Drizzle ORM configuration
next.config.ts # Next.js configuration
biome.json # Biome linter/formatter config
Feel free to use and customize this template as per your requirements. You can modify the components, styles, and content to create your unique website.
This project is licensed under the MIT License. You are free to use, modify, and distribute it as you wish.
- Better Auth Ui - Pre-built authentication components
- shadcn landing page - landing page used for this project
Visit IndieTech.dev
for more on our products and services.