This codebase was developed to demostrate how to use IPFS in conjuction with Y.js, a CRDT library.
- Have Node.js version 6 or greater installed
> git clone https://github.com/ipfs-labs/shared-editing-demo.git
> cd shared-editing-demo
> npm install
> npm run build
Followed this video by IPFS[https://www.youtube.com/watch?v=-kdx8rJd8rQ](Youtube IPFS).
Using a modern browser that supports WebRTC, like a recent version of Chrome or Firefox, open several windows of http://localhost:12345.
This Demo uses WebRTC to establish the connections between nodes. WebRTC is a CPU intensive protocol and not all Browsers will behave correctly, depending on their implementation of WebRTC or the resources available on the machine that they are running. This is a known issue and something the js-ipfs team is looking at alternatives to solve.
I plan to make my own collaborative code-editor for command line in future.
MIT