| 1234567891011121314151617181920212223242526272829303132333435363738 |
- Synchronous collaboration for drawio.
- Steps to run server
- -------------------
- - Install NodeJS and NPM
- - In 'lib' dir, run:
- cd lib
- npm i serve-handler ws uuid
- - Setup server state directory.
- mkdir /desired/path
- mkdir /desired/path/ops
- mkdir /desired/path/branches
- - In root dir, run:
- DRAWIOSTATEDIR=/desired/path node lib/versioning/run_server.js
- The server will also act as a static file server, hosting the drawio web app. Default port is 8700.
- Steps to build + run client
- ---------------------------
- - Build SCCD model:
- cd lib/versioning
- python -m sccd.compiler.sccdc -l javascript -p eventloop client.xml -o client.js
- - Browserify plugin:
- cd src/main/webapp/plugins/cdf
- browserify versioning.js > versioning.browser.js
- - Make sure server is running and navigate to
- http://localhost:8700/src/main/webapp?dev=1&p=versioning
|