A real time collaborative editor using CodeMirror and ot.js. SharedPen is still in Development, fork and pull-requests are welcome! 😋
npm install
cd examples/react-demo
npm install
# path: root
gulp serve
- watch sharedpen source files' change
- compile them to
build
dir - serve them (port: 5000)
# path: root
node --inspect examples/server.js
- setup socket.io(port: 4000)
Open in Chrome, debug the SharedPen server side code:
chrome://inspect/#devices
cd examples/react-demo
yarn start
- serve demo's static files(port: 3000)
Open in Browser, debug the SharedPen client side code:
http://localhost:3000/
npm run bundle
cd examples/react-demo
yarn build
MIT