https://github.com/yldio/pouch-websocket-sync-example
Pouch Stream example
https://github.com/yldio/pouch-websocket-sync-example
Last synced: about 1 month ago
JSON representation
Pouch Stream example
- Host: GitHub
- URL: https://github.com/yldio/pouch-websocket-sync-example
- Owner: yldio
- Archived: true
- Created: 2015-10-26T09:04:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-27T22:11:56.000Z (about 8 years ago)
- Last Synced: 2025-03-25T09:51:24.276Z (about 1 month ago)
- Language: JavaScript
- Size: 57.6 KB
- Stars: 147
- Watchers: 8
- Forks: 31
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - yldio/pouch-websocket-sync-example - Pouch Stream example (others)
README
# pouch-websocket-sync-example
Example "Todo-MVC" application of using [`pouch-websocket-sync`](https://github.com/pgte/pouch-websocket-sync#readme) together with React and Redux, keeping local database in sync with remote.
[demo video](http://www.youtube.com/watch?v=8jOF23dfvl4)
## Pre-requisites
You must have [Node.js](https://nodejs.org/en/) installed.
## Download
Clone this repo:
```
$ git clone [email protected]:pgte/pouch-websocket-sync-example.git
$ cd pouch-websocket-sync-example
```## Install dependencies:
```
$ npm install
```## Start
Start web server:
```
$ npm start
```Start websocket server:
```
$ node websocket-server
```Open [http://localhost:3000](http://localhost:3000) in your browsers.
## License
ISC