Skip to content

Get started quickly with Next.js, Postgres, Stripe, and shadcn/ui.

Notifications You must be signed in to change notification settings

3dln/next-saas-starter

Repository files navigation

Next.js SaaS Starter

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.

Features

  • 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

Tech Stack

Getting Started

git clone https://github.com/leerob/next-saas-starter
pnpm install
pnpm db:setup
pnpm db:seed

Running Locally

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.

Testing Payments

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

About

Get started quickly with Next.js, Postgres, Stripe, and shadcn/ui.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.1%
  • CSS 1.8%
  • JavaScript 0.1%