This is a clean starter to migrate your existing Express/MySQL app to Supabase with Next.js (JS only) and Stripe billing.
- Clone & Install
npm install
- Create env file
cp .env.local.example .env.local
- Create a Supabase project, open SQL Editor, and run
supabase/migrations/0001_init.sql. - Run
npm run dev
- Set
STRIPE_PRICE_ID_MONTHLY(and YEARLY) from your Stripe dashboard. - Expose webhook locally with
stripe listen --forward-to localhost:3000/api/stripe/webhookand setSTRIPE_WEBHOOK_SECRET.
app/Next.js routes (server & client)lib/Supabase and Stripe helperssupabase/migrations/SQL schema
See
docs/for step-by-step migration notes from the old app.