Skip to content

Commit 22bd4e6

Browse files
committed
init commit
0 parents  commit 22bd4e6

27 files changed

+7885
-0
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_APP_ENDPOINT=
2+
VITE_APP_PROJECT=

.eslintignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

.eslintrc.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
5+
plugins: ['svelte3', '@typescript-eslint'],
6+
ignorePatterns: ['*.cjs'],
7+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
8+
settings: {
9+
'svelte3/typescript': () => require('typescript')
10+
},
11+
parserOptions: {
12+
sourceType: 'module',
13+
ecmaVersion: 2020
14+
},
15+
env: {
16+
browser: true,
17+
es2017: true,
18+
node: true
19+
}
20+
};

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
vite.config.js.timestamp-*
10+
vite.config.ts.timestamp-*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"pluginSearchDirs": ["."],
8+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
9+
}

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Svelte-Kit Appwrite Authentication Demo
2+
3+
This project shows how to use Appwrite's authentication API to enable user registration, login, and logout with email secession. With this app, you can test the different authentication flows and see how they work in a Svelte-Kit application.
4+
5+
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:
6+
7+
- [Appwrite documentation](https://appwrite.io/doc)
8+
- [Linode documentation for getting started with Appwrite](https://www.linode.com/docs/guides/getting-started-appwrite/)
9+
- [Appwrite Youtube channel](https://www.youtube.com/watch?v=aO4mw8smXkI)
10+
11+
12+
# Installation
13+
14+
Clone the repository:
15+
16+
```bash
17+
git clone https://github.com/username/project-name.git
18+
```
19+
20+
Change into the project directory:
21+
22+
```bash
23+
cd project-name
24+
```
25+
26+
Install dependencies using yarn:
27+
28+
```bash
29+
yarn install
30+
```
31+
32+
# Environment Variables
33+
34+
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:
35+
36+
```bash
37+
VITE_APP_ENDPOINT=https://yourappdomain/v1
38+
VITE_APP_PROJECT=AppwriteProjectID
39+
```
40+
41+
# Usage
42+
43+
To start a local development server, run the following command:
44+
45+
```bash
46+
yarn dev
47+
```
48+
49+
This will start the development server and your app should be available at `http://localhost:5173/`.

0 commit comments

Comments
 (0)