Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/p-adams/react-auto-refresh
Voting app to demonstrate polling using react-query
https://github.com/p-adams/react-auto-refresh
Last synced: 2 days ago
JSON representation
Voting app to demonstrate polling using react-query
- Host: GitHub
- URL: https://github.com/p-adams/react-auto-refresh
- Owner: p-adams
- Created: 2021-12-22T20:56:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-27T07:31:37.000Z (about 3 years ago)
- Last Synced: 2024-11-07T22:43:30.703Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## react-auto-refresh
A voting app to demonstrate how to use react-query `refetchInterval` API to poll an endpoint.
### Getting started
Clone repo:
`git clone [email protected]:p-adams/react-auto-refresh.git`
Install server dependencies:
```
cd react-auto-refresh/src/server
npm install
npm run serve
```Local server runs on port `4001`
Install client dependencies:
In a new tab, run:
```
npm install
npm run dev
```from the root of `react-auto-refresh`
Local dev server runs on port `3000`