This is a starter template for building a SaaS application using Svelte and SvelteKit.
Stripe CLI:
stripe login
Supabase Local Setup (Optional):
pnpm supabase init
pnpm supabase start
Create .env.local file:
pnpm run db:setup
Install dependencies:
pnpm install
Start development server:
pnpm run dev
Open http://localhost:5173 in your browser to see the app in action.
Optionally, you can listen for Stripe webhooks locally through their CLI to handle subscription change events:
stripe listen --forward-to localhost:5173/api/stripe/webhook
To test Stripe payments, use the following test card details:
4242 4242 4242 4242