Docs
/
Introduction
FirstWeb.App - SaaS Template
A comprehensive SaaS template built with Next.js App Router, shadcn/ui, Better Auth, and more.
Introduction
FirstWeb.App is designed to help developers launch their SaaS projects in days instead of months. It provides all the boilerplate you need, from identity and payments to analytics and storage.
Features
UI & Design
shadcn/ui, Tailwind CSS, Responsive design
i18n
Multi-language support, next-intl integration
Authentication
Better Auth, OAuth, Magic Link, Email/Password
Database
Prisma ORM, PostgreSQL/MySQL/SQLite support
Resend, Email templates
Payments
Stripe integration, Subscription & One-time
Storage
S3 Compatible (Cloudflare R2, B2)
Analytics
GA4, Vercel, PostHog, Umami
Tech Stack
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Auth: Better Auth
- Database: Prisma (PostgreSQL)
Getting Started
git clone <your-repo-url>
npm install
cp .env.example .env
npx prisma generate
npm run devCheck .env.example for required environment variables.
Docker Deployment
Quick start with Docker Compose:
docker-compose up -dProject Structure
src/app/- Next.js App Router (i18n)
src/components/- UI and Shared Components
src/lib/- Auth, DB, Stripe, Storage logic
messages/- Translation JSON files
prisma/- Schema and Migrations