Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SakshiUppoor/infinite-scroll-demo
https://github.com/SakshiUppoor/infinite-scroll-demo
appwrite
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/SakshiUppoor/infinite-scroll-demo
- Owner: SakshiUppoor
- Created: 2021-10-23T12:24:51.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-24T09:52:22.000Z (about 3 years ago)
- Last Synced: 2024-08-02T07:24:00.933Z (6 months ago)
- Topics: appwrite
- Language: JavaScript
- Homepage:
- Size: 14 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-appwrite - Source Code
README
# Infinite Scroll Demo
A simple React JS + Appwrite project to demonstrate infinite scroll paging.## Demo
https://user-images.githubusercontent.com/46474346/138588734-fbc26a33-ab23-4297-a449-082efbde9bce.mp4
## Run locally
1. Install Appwrite by following the [installation guide](https://appwrite.io/docs/installation).
2. Open the Appwrite console and create a new project.
3. Navigate to `Database` and add a new `Collection` called `Photos`.
4. Add the following rules and permissions:
#### Rules:
| 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 | |#### Permissions:
Read Access: `*`
Write Access: `*`
3. Clone this repo
```bash
git clone https://github.com/SakshiUppoor/infinite-scroll-demo.git
cd infinite-scroll-demo
```4. Install dependencies
```bash
npm install
```5. From the Appwrite console, note down the `API Endpoint`, `Project ID` and `Collection ID` of the `Photos` Collection and enter these in `src/config.js`.
6. The project is ready to run! :rocket:
```bash
npm start
```
## Acknowledgements- [Appwrite](https://appwrite.io/) - End-to-end Backend Server
- [Faker.js](https://github.com/Marak/Faker.js) - Mock user data for demo
- [Lorem Picsum](https://picsum.photos/) - Mock photos for demo