Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 611 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 611 Bytes

Simple realtime client/server sync with ShareDB

Demo

This is a simple websocket server that exposes the ShareDB protocol, with a client showing an incrementing number that is sychronized across all open browser tabs.

In this demo, data is not persisted. To persist data, run a Mongo server and initialize ShareDB with the ShareDBMongo database adapter.

Install dependencies

npm install

Build JavaScript bundle and run server

npm run build && npm start

Run app in browser

Load http://localhost:8080