https://github.com/systangotechnologies/react-offline-sync
React offline sync with redux and reactstrap
https://github.com/systangotechnologies/react-offline-sync
Last synced: about 1 year ago
JSON representation
React offline sync with redux and reactstrap
- Host: GitHub
- URL: https://github.com/systangotechnologies/react-offline-sync
- Owner: SystangoTechnologies
- Created: 2018-09-10T15:06:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-09T10:00:48.000Z (over 7 years ago)
- Last Synced: 2025-03-29T21:51:10.194Z (about 1 year ago)
- Language: JavaScript
- Size: 219 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: history.js
Awesome Lists containing this project
README
# react-offline-sync
React offline sync with redux and reactstrap.
[demo](https://react-offline-sync.firebaseapp.com/)
### Description
- This app aims to provide solution for offline syncing the app without hindering user interaction.
- Wrap you components using HOC withPendingRequest ( ./src/withPendingRequest ).
- The HOC handles api calls as user gets back online.
### Usage
Step: 1
import withPendingRequest from 'react-offline-sync';
step: 2
export default connect(mapStateToProps, mapDispatchToProps)(withPendingRequest(Home));
step: 3
import offlineMiddleware from 'react-offline-sync';
step: 4
applyMiddleware(offlineMiddleware);
### Installation
1. Clone or Download the repository
$ git clone https://github.com/SystangoTechnologies/react-offline-sync.git
2. Start the app
$ npm start
Your app should now be running on localhost:8000
## Contributors
- [Nishchay Gupta](https://github.com/nsgupta4)
- [Saharsh Goyal](https://github.com/saharshg10)
- [Rishabh Shah](https://github.com/rishabh-systango)
## License
Built under [MIT](http://www.opensource.org/licenses/mit-license.php) license.