An open API service indexing awesome lists of open source software.

https://github.com/sikandarjodd/auth-lucia

Lucia Auth using Sveltekit, Drizzle ORM, and Superform for Validation with Shadcn-Svelte
https://github.com/sikandarjodd/auth-lucia

auth drizzle-orm email-password-authentication lucia lucia-auth lucide-svelte superforms sveltekit

Last synced: 6 months ago
JSON representation

Lucia Auth using Sveltekit, Drizzle ORM, and Superform for Validation with Shadcn-Svelte

Awesome Lists containing this project

README

          

# Username - Password Authentication with Lucia-Auth

This project demonstrates how to implement Username-password authentication using Lucia-Auth and the SvelteKit full-stack framework. It also utilizes the Shadcn-Svelte CSS library for styling, Lucide-Svelte for icons, Drizzle ORM, Supabase for storing data.

## Tech Framework & Library

| Topic | Frameworks |
| ---------- | ------------------ |
| Full Stack | **Sveltekit 🔥** |
| Auth | **Lucia-Auth** |
| CSS | **Shadcn-Svelte** |
| Database | **Supabase** |
| ORM | **Drizzle ORM** ✨ |

### Website Demo

[Live Preview](https://auth-lucia.vercel.app)

```
https://auth-lucia.vercel.app
```

## Getting Started

1. Clone the repository:

```bash
git clone https://github.com/SikandarJODD/Auth-Lucia
```

2. Install the dependencies:

```bash
cd auth-lucia
npm install
```

3. Configure the environment variables:

Create a `.env` file in the root directory and add the following variables:

```bash
DATABASE_URL = ''
```

4. Run the application:

```bash
npm run dev
```

5. Open your browser and navigate to `http://localhost:5173` to see the application in action.

## Features

- User registration with Username and password
- User login with Username and password

## Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

## Credits:

1. [Lucia Auth](https://lucia-auth.com)
2. [Username-Password](https://lucia-auth.com/tutorials/username-and-password/) Tutorial
3. [Pilcrowonpaper](https://twitter.com/pilcrowonpaper) `--Twitter`

## License

This project is licensed under the [MIT License](LICENSE).