Create an Astro project using:
Shell
npm create astro@latest
The command prompt will be something similar to this.
Shell
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.
Shell
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.
Shell
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:
Shell
npx astro add node