Overview
This SvelteKit starter project provides basic user authentication functionality using Lucia, Prisma, Zod, SuperForms, and PostgreSQL. It includes features such as signin, signup, mail verification, password reset, and a profile page. It also offers additional features such as i18n through inlang.com. The project is based on shadcn-svelte and sveltekit-auth-starter projects.
Features
- Signin and Signup: Users can sign in and sign up for an account.
- Mail verification: Users receive a verification email to confirm their email address.
- Password reset: Users can reset their password if forgotten.
- Profile Page: Users have a profile page to manage their account information.
- Additional features: The project supports i18n through inlang.com.
Installation
To install the theme, follow these steps:
- Start a Docker container with PostgreSQL.
- Rename
sample.envfrom the root directory to.envand edit thePOSTGRES_PRISMA_URLwith the appropriate PostgreSQL URL. - Install dependencies.
- Run initial Prisma migration.
- Start the app.
- Create an account:
6.1. Go to http://localhost:5173/ and create an account. After clicking the “Sign up” button, you will be redirected to the Email Confirmation Page.
6.2. If nodemailer is not configured in the
.envfile, open Prisma Studio, go to the AuthUser table, and set the verified field to true. 6.3. Go back to the Email Confirmation Page and refresh. You should now be logged into your account.
Summary
This SvelteKit starter project provides a foundation for building a web application with basic user authentication functionality. With features such as signin, signup, mail verification, password reset, and a profile page, it offers a seamless user experience. In addition, the project supports i18n through inlang.com for internationalization purposes. Installation is straightforward, and the documentation for the UI components and authentication components is accessible through the provided links. The project is licensed under the MIT license.