svelte-supabase-auth-demo Svelte Themes

Svelte Supabase Auth Demo

svelte-supabase-auth-demo

A small SvelteKit project demonstrating how to use...

Usage

  1. Create a hosted Supabase project or set up a local instance. If you use a hosted instance, keep in mind to enable anonymous sign ins. For the local instance, this is already configured in supabase/config.toml.

  2. Copy .env.example to .env.local and provide all config values.

  3. Install dependencies:

    bun install
    
  4. Run the init-db command to initialize the database. The schema can be found in prisma/schema.prisma and the database seed query in ./seed.sql.

    bun run init-db
    
  5. Start a dev server with

    bun run dev
    
  6. Navigate to http://localhost:5731

  7. When using a local instance, verification emails will be send to Inbucket, a mock email server which can be accessed under http://localhost:54324/.

Top categories

Loading Svelte Themes