This is a SvelteKit project that uses Magic Links for authentication.
- Use Magic Links for authentication
- Use SQLite as the database
- Use Drizzle for database operations
- Use Better Auth for authentication and authorization
- Use SvelteKit for the frontend framework
- Clone the repository
- Install the dependencies with
npm install
- Create a
.env
file with the following variables:DATABASE_URL
: the URL of your SQLite database
- Run
npm run dev
to start the development server - Open your web browser and navigate to
http://localhost:5173
Tip
I am using mail server localhost:1025 with SMTP. software: Mailpit
- Go to /auth and click on the "Sign In" button
- Enter your email address and click on the "Send Magic Link" button
- Check your email for a link to sign in
- Click on the link to sign in
This project is licensed under the MIT License. See the LICENSE file for details.