Photoz is an image gallery app.
- Follow this guide to install appwrite in your machine or in cloud.
- After the successful installation of appwrite open your appwrite console. (default url for local appwrite installation is http://localhost:80/ or https://localhost:443/) Create a project and add a web platform in it.
- For this project, go to Database and create a collection. You can name the collection whatever you like but collection id should be
imagesor you can give the id of your liking but change it in thesrc/services/database.api.js. This collection should have a read access ofrole:alland write access ofrole:member. - You need to create the following attributes in that collection.
| Attribute ID | Type | Required |
|---|---|---|
| title | string | required |
| url | string(url) | required |
| user_id | string | required |
| tags | string[] |
And one index to query the data.
| Index Key | Type | Attributes |
|---|---|---|
| user_id | key | user_id (ASC) |
Appwrite Doc is the best place for indepth understanding of these.
- After cloning the repo run
npm ito install every dependency. - Then go to
src/services/appwrite.config.jsand change the endpoint and project id. You can get this from the appwrite console. - After that save everything and run
npm startand this photo gallery app should be up and running. 🚀 🔥