This project shows how to use Appwrite's authentication API to enable user registration, login, and logout with an email session. With this app, you can test the different authentication flows and see how they work in a Svelte-Kit application.
This project assumes that you have already set up an Appwrite server or already hosting with Appwrite. For more information on how to get started with Appwrite, here are some of my favorite links:
Also, feel free to reach out to me on discord if you need any help; yoyojoe#5510
Clone the repository:
git clone https://github.com/joeychrys/svelte-appwrite-auth.git
Change into the project directory:
cd svelte-appwrite-auth
Install dependencies using yarn:
yarn install
Before starting the application, you need to create a .env file in the root directory of the project. You can use the .env.example file as a reference. The following environment variables need to be defined:
VITE_APP_ENDPOINT=https://yourappdomain/v1
VITE_APP_PROJECT=AppwriteProjectID
To start a local development server, run the following command:
yarn dev
This will start the development server and your app should be available at http://localhost:5173/
.
Thank you for your interest in helping! Feel free to make a PR if anything needs to be fixed/ updated.
The source code for this project is licensed under the MIT license, which you can find in the MIT-LICENSE.txt file.