Step-by-Step Guide to Install Appwrite on Windows 10
In this tutorial, you will learn how to install Appwrite on your Windows 10 machine. Follow these steps carefully to successfully install Appwrite:
Prerequisites
- Node.js installed on your computer.
- You have administrative privileges on your machine.
- You have a MongoDB database installed or accessible from your local machine.
Installing Appwrite
Download the latest version of Appwrite from https://appwrite.io/downloads.
Extract the contents of the downloaded zip file to a folder on your machine.
Open a command prompt as an administrator and navigate to the extracted Appwrite directory.
Run the following commands to install Appwrite's dependencies:
npm install
npm install pm2 -g
- Open the
config.jsfile in a text editor and update the following settings:
"dbHost": "localhost",
"dbPort": 27017,
"dbUser": "",
"dbPassword": "",
"dbSSL": false,
Change the dbHost and dbPort values to match your MongoDB server details.
- Run the following command to start the Appwrite server:
pm2 start app.js --name "appwrite"
You should see the following message output in your console:
[PM2] Starting app: app.js in fork_mode (1 instance)
[PM2] Done.
┌────┬────────────┬─────────────┬─────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
│ id │ name │ namespace │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │
├────┼────────────┼─────────────┼─────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
│ 0 │ appwrite │ default │ fork │ 19864 │ online │ 0 │ 3s │ 0.0% │ 5mb │ User │
└────┴────────────┴─────────────┴─────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
You have successfully installed and started Appwrite on your Windows machine.
Testing Appwrite
To test if Appwrite is running correctly, open a web browser and navigate to http://localhost:8000/v1. You should see a response from the Appwrite server in JSON format.
Congratulations! You have successfully installed Appwrite on Windows 10.