Joshua Nussbaum/Build a SaaS with SvelteKit

  • $49

Build a SaaS with SvelteKit

  • Course
  • 19 Lessons

Learn how to build a SaaS with SvelteKit! This course covers: - How to build a membership-style site - Adding authentication with Auth.js - Creating a database-driven pricing page - Integrating Stripe checkout - Syncing subscriptions with Stripe webhooks - Supporting plan changes and account cancelation via Stripe's Customer Portal

Contents

Overview
Preview

Links

Code

Setup

Set up SvelteKit with Prisma and Postgres.
Setup SvelteKit & Prisma
Preview
Segmenting routes & adding layouts
Preview

Authentication

Add authentication using Vercel's Auth.js
What is Auth.js?
Preview
Setup Auth.js
Preview
Configure OAuth provider
Preview
Add the Prisma adapter
Client-side authentication
Server-side authentication

Plans & Pricing

Model plan data and create a pricing page.
Setup pricing with Stripe
Add a data model
Add a pricing page
Add plan data to the session
Control access based on plans

Payments

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