-
Creating an account on Appwrite Cloud.
-
Create a new project with any name you want and choose web as a platform.
- Name the web project anything you like and Set Hostname to
localhost
.
- Name the web project anything you like and Set Hostname to
-
Copy
.env.example
file to.env.local
andappwrite-gen/.env.example
file toappwrite-gen/.env
manually or using:cp .env.example .env.local cp appwrite-gen/.env.example appwrite-gen/.env
-
Go to settings and copy your project id and paste it in
.env.local
file as well as inappwrite-gen/.env
files. -
While on the settings page click on View API Keys button.
-
Create an API key with any name you like, set the scopes to all and copy it's value and paste it in
appwrite-gen/.env
file asPROJECT_API_KEY
variable. -
Setup your database with the command:
yarn schema:prepare
this should create a database with users, posts, etc. collections.
-
Fill in the rest of
.env.local
file with the appropriate ids if not already set.
-
Make changes through the appwrite console.
-
Generate the schema with the command:
yarn schema:generate
this should update
appwrite-gen/schema.json
with your changes. -
Simply push this file through the git workflow mentioned here.
Feel free to open issues if you face any. 😀