A simple React JS + Appwrite project to demonstrate infinite scroll paging.
demo.mp4
-
Install Appwrite by following the installation guide.
-
Open the Appwrite console and create a new project.
-
Navigate to
Databaseand add a newCollectioncalledPhotos. -
Add the following rules and permissions:
| Label | Key | Type | Required | Array | Default Value |
|---|---|---|---|---|---|
| Username | username |
Text | true |
false | |
| Avatar | avatar |
URL | true |
false | |
| Location | location |
Text | false |
false | |
| Image | imageUrl |
URL | true |
false |
Read Access: *
Write Access: *
- Clone this repo
git clone https://github.com/SakshiUppoor/infinite-scroll-demo.git
cd infinite-scroll-demo- Install dependencies
npm install-
From the Appwrite console, note down the
API Endpoint,Project IDandCollection IDof thePhotosCollection and enter these insrc/config.js. -
The project is ready to run! 🚀
npm start- Appwrite - End-to-end Backend Server
- Faker.js - Mock user data for demo
- Lorem Picsum - Mock photos for demo
