sveltekit-saas

Sveltekit Saas

A SvelteKit Starter with Vercel and MySQL

SvelteKit Starter

SvelteKit Starter is a project to start building fast your next project with SvelteKit and TypeScript.

By cloning this project you will have already a project with:

  • E-mail and password authentication
  • Simple profile management to change name, e-mail, password.
  • Account deletion
  • Request to reset password
  • Create/Delete a team
  • Invite users to a team

Tech Stack

  • SvelteKit
  • TypeScript
  • Zod for form validations
  • Prisma as ORM
  • Resend for Email delivery
  • MySQL
  • CSS for styling

Setup

  1. Clone the project
  2. cd sveltekit-saas
  3. npm install
  4. cp .env.example .env
  5. Setup the database. For an easy setup on MacOS checkout DBngin.
  6. Setup the database npx prisma db push
  7. npm run dev

Google Auth

Please refer to Google Oauth Documentaiton

Resend

We use Resend to send e-mails. For production you will need to setup your domain DNS.

Deployment

Currently, the project is setup for deployment on Vercel and uses MySQL as database from PlanetScale. This is mostly chosen because of their generous free tiers.

Roadmap

  • Stripe integration
  • OAuth integration
  • Magic links
  • Improve Design

Top categories

Loading Svelte Themes