Skip to content

substance/collab-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CollabWriter

CollabWriter sets up a minimal realtime collaboration infrastructure.

STATUS: Experimental

Install

$ git clone https://github.com/substance/examples.git
$ npm install
$ npm run build
$ npm start
  • Open two browser windows at http://localhost:7777.
  • Start typing and see the changes in realtime in the other window.

Development

You can build in development mode, where source file changes trigger a rebuild of client and server. The Server will be bundled into server.cjs.js. We recommend using Google Chrome for development.

$ npm run dev

Open a separate terminal window and run node.

$ node server.cjs.js

We recommend that you start the server with a visual debugger, such as devtool.

$ devtool server.cjs.js