Update Starter: Subscriptions and Auth for SaaS

R
Renaudil y a 2 jours
0

Description

A full-stack Next.js template with built-in authentication, billing, and entitlements — powered by Update, Supabase, and Stripe.

npx boilerapp update-starter

文档

⚡ Features

  • 💳 Subscriptions — Stripe billing with checkout, portals, trials, and failed payment recovery
  • 🔐 Authentication — Supabase auth with Update-powered extensions (e.g., magic links, redirects)
  • 🔓 Entitlements — Easy access control by plan, org, or user role
  • ⚙️ Full-stack ready — App Router, Middleware, Client, and Server usage supported
  • 🎨 UI — Built with Tailwind CSS and shadcn/ui

🔗 Demo

Live demo: nextjs-supabase-stripe-update.vercel.app


🚀 Deploy to Vercel

Click the button below to instantly deploy the template and set up Update and Supabase:

Deploy with Vercel


🛠️ Local Setup

1. Clone the project

git clone https://github.com/updatedotdev/nextjs-supabase-stripe-update.git cd nextjs-supabase-stripe-update

2. Install dependencies

npm install

or

pnpm install

3. Configure environment variables

Create a .env.local file based on the provided example:

cp .env.example .env.local

Fill in values from:

NEXT_PUBLIC_UPDATE_PUBLIC_KEY=...
NEXT_PUBLIC_SUPABASE_URL=...
NEXT_PUBLIC_SUPABASE_ANON_KEY=...

4. Run the dev server

npm run dev

Open http://localhost:3000 in your browser to view the app.


📦 What's Included

  • 🔌 Update Client Setup:
    • utils/update/client.ts — for browser-side usage
    • utils/update/server.ts — for server-side usage
  • 🧠 Entitlements Checks:
    • Example usage of client.entitlements.check() to conditionally render UI
  • 💳 Billing Integration:
    • Stripe Checkout & Customer Portal
    • Cancel/reactivate subscriptions
    • Usage-based plans (coming soon)

🧩 Tech Stack


🤝 Support


📄 License

MIT

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联系我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联系我们,我们将尽快回复。