Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.12 KB

File metadata and controls

51 lines (32 loc) · 1.12 KB

pouch-websocket-sync-example

Example "Todo-MVC" application of using pouch-websocket-sync together with React and Redux, keeping local database in sync with remote.

demo video

This repo updates the original from @pgte to work with newer dependencies including webpack 2, babel 6, PouchDB 6 and react 15.

Pre-requisites

You must have Node.js installed.

This repo uses yarn to manage dependencies. Using npm may work, but it may install newer, incompatible packages. The versions of packages known to work are recorded in yarn.lock.

Download

Clone this repo:

$ git clone git@github.com:ericgundrum/pouch-websocket-sync-example.git
$ cd pouch-websocket-sync-example

Install dependencies:

$ yarn install

Start

Start web server:

$ node server

Start websocket server:

$ node websocket-server

Open http://localhost:3000 in your browsers.

License

ISC