Docs
Skip to content

Astro SSR

Create project_

Add authentication to a Astro project using Appwrite.

1 min read

Raw

Create an Astro project using:

Bash
npm create astro@latest

The command prompt will be something similar to this.

Bash
Where should we create your new project? ./my-astro-project
How would you like to start your new project? Empty
Do you plan to write TypeScript? No
Install dependencies? Yes
Initialize a new git repository? Yes

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

Bash
cd my-astro-project

Install Appwrite

Appwrite provides a Node SDK that can be used in your Astro 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

Add Node adapter to Astro

To use Astro as an SSR framework, you need to add the Node adapter to your project. Run the following command:

Bash
npx astro add node

Was this page helpful?

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