Overview

Overview

Build a SaaS with SvelteKit (archive)

Buy nowLearn more
  • Overview7

Links

  • Code2

Setup

  • Setup SvelteKit & Prisma8
  • Segmenting routes & adding layouts2

Authentication

  • What is Auth.js?
  • Setup Auth.js
  • Configure OAuth provider
  • Add the Prisma adapter
  • Client-side authentication4
  • Server-side authentication6

Plans & Pricing

  • Setup pricing with Stripe
  • Add a data model
  • Add a pricing page2
  • Add plan data to the session
  • Control access based on plans

Payments

  • Create a checkout flow
  • Sync subscriptions
  • Handle subscription webhooks
  • Add Stripe customer portal