- Implementation of CRDT using Last Write Wins Register
- Add a socket.io feature based on the code by jakelazaoff
- Alice and Bob use Socket.IO for real-time data communication, ensuring no data conflicts with the help of CRDTs
- node (tested on 18)
- lww-crdt-server
-
Create
.env
filecp env.example .env
-
Add
SOCKET_URL
in.env
vi .env
-
Install dependencies
npm i
-
Run
npm run dev # or npm run build npm run start
-
Demo
- visit http://localhost:3001/alice
- visit http://localhost:3001/bob