SaaS
Reference

Project Structure

apps/web/
├── app/
│   ├── (dashboard)/     # Landing, pricing, dashboard
│   ├── (login)/         # Sign-in, sign-up
│   ├── api/             # API routes (auth, stripe, user, team)
│   └── docs/            # Documentation pages
├── components/
│   ├── ui/              # shadcn/ui components
│   └── ...              # Theme, footer, cards
├── lib/
│   ├── db/              # Schema, queries, migrations
│   ├── payments/        # Stripe integration
│   └── mailkite-auth/   # Authentication logic
├── middleware.ts         # Route protection
└── next.config.ts       # Next.js configuration

packages/
└── mailkite-auth/       # Auth package source

See the GitHub repo for the full source.

Next.js SaaS Starter — Launch your SaaS