Skip to content

lecocococo/peer-collaborative-text-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collaborative text editor

collaborative text editor using CRDT AND using peer to peer connection

How to Start

First step,

npm install

Second step Go to src/App.js

change this part

const provider = new WebrtcProvider("test-room", ydoc, {
      signaling: ["wss://y-signaling-server.herokuapp.com/"],
      filterBcConns: false,
    });

CHANGE LIKE THIS

const provider = new WebrtcProvider("test-room", ydoc, {
      filterBcConns: false,
    });

Third step,

npm start

PLEASE OPEN IN CHROME or FIREFOX!!!
Open two browsers or anther tab using URL

It's done!!!

Demo(NOT WORKING!! Because of heroku is not free anymore)

!!!!! IMPORTANT: if you visit the demo sites please use another network to check its works(e.g. computer: wifi, mobile device: 3G, 4G, 5G and so on...) Visit: https://y-main.herokuapp.com/ Don't write Personal information because demo only have one room so, everyon in the demo room can see your information

Restirct

  1. Only one room is available
  2. if you run locally, it works only on your computer
  3. you can't access with mobile device (Because It's not implemented yet)

About

collaborative text editor using CRDT and peer-peer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published