Important
This repo is a work-in-progress and not ready for 👀
This is a starter template for building a SaaS application using Next.js with support for authentication, Stripe integration for payments, and a dashboard for logged-in users.
- Logged-Out Experience:
- Home Page
- Pricing Page
- Logged-In Experience:
- Dashboard Page
- User authentication (cookie-based, email/password)
- Stripe integration for payments (Checkout & Customer Portal)
useUser
hook for managing user data
git clone https://github.com/leerob/next-saas-starter
pnpm install
pnpm db:setup
pnpm db:seed
Once you have set up the environment variables and installed dependencies, run the development server:
pnpm dev
Then, also listen for Stripe webhooks locally through their CLI:
stripe listen --forward-to localhost:3000/api/stripe/webhook
Open http://localhost:3000 in your browser to see the app in action.
To test Stripe payments, use the following test card details:
- Card Number:
4242 4242 4242 4242
- Expiration: Any future date
- CVC: Any 3-digit number