Authentication with email and password
Live Demo First, start by cloning this folder. We will use tiged
for cloning subdirectories in Git repositories.
code loading...
Next, install the dependencies: pnpm i
Duplicate the .env.example
file and rename it to .env
. Then, add your SQLITE_DB_URL
and TURSO_AUTH_TOKEN
to the .env
file.
There is already a migration file for the database, located in src/lib/server/db/migrations/0000_yummy_eternals.sql
. This file is used to create the tables and indexes for the database. You can use this file as a starting point for your migration.
To run the migrations, run the following commands:
code loading...
Now, you can run the application:
code loading...
Open your browser and navigate to http://localhost:5173
. You should see the home page with links to the login and signup pages.
Learn how to create an AI Chatbot with OpenAI, SvelteKit, SQLite and Vercel AI SDK
Use Google OAuth 2.0 to authenticate users in your SvelteKit app
This recipes uses Cloudflare R2 for uploading and storing assets in the cloud. Cloudflare R2 is a S3 compatible object storage service that is optimized for performance and cost efficiency.
This recipe integrates Supabase with Drizzle in a SvelteKit application.