Skip to content

Sveltekit Authentication with Lucia & Drizzle ORM

License

Notifications You must be signed in to change notification settings

Neon-Coders/sveltekit-lucia-auth

Folders and files

NameName
Last commit message
Last commit date
May 26, 2024
May 27, 2024
May 27, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 27, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024
May 26, 2024

Repository files navigation

Sveltekit Authentication with Lucia & Drizzle ORM

Minimal starter project with just the basic authentication pages and components that you can build on.

Banner

Features

  • Email - Password auth with verification codes + rate limiting
  • Google & Github Oauth
  • Authentication Modals
  • Account linking
  • Shadcn-svelte + Superforms
  • Turso DB + Drizzle ORM (swap with your preferred db, just follow drizzle docs)

Setup

To setup the project you need to first create a local Libsql database and run the drizzle scripts to set up the database and then start the dev server.

Create Local DB

  • In project root, add db/sqlite.db

Set Environment Variables

  • Change .env.example --> .env
  • Update keys to enable Oauth & Resend verification emails

Run scripts

pnpm db:generate
pnpm db:push
pnpm dev

Building

To create a production version of your app:

pnpm run build