Docs
Skip to content

SvelteKit SSR

Create project_

Add authentication to a SvelteKit project using Appwrite.

1 min read

Raw

Create a Svelte project using SvelteKit.

Bash
npm create svelte@latest

The command will give you a prompt with several project types. We'll be starting with a skeleton project.

The prompt will be something similar to this.

Bash
create-svelte version 3.2.0
┌ Welcome to SvelteKit!
◇ Where should we create your project?
│ my-svelte-project
◇ Which Svelte app template?
│ Skeleton project
◇ Add type checking with TypeScript?
│ Yes, using JavaScript with JSDoc comments
◇ Select additional options
│ None
└ Your project is ready!

After the prompt is finished, you can head over to the newly created project.

Bash
cd my-svelte-project
npm install

Install Appwrite

Appwrite provides a Node SDK that can be used in your Svelte apps. You can use Appwrite by installing the Node SDK as an NPM package. The Node SDK is intended for server-side use. If you want to use Appwrite in a client-side application, you should use the Web SDK instead.

Bash
npm install node-appwrite

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.