https://www.loom.com/share/f152340723af40e7bacd3f67fafb2d69?sid=2bab7fa4-4de0-4bc8-a6ce-05166b96af4d
Example of crdt websocket backend for y-js to be used with y-websocket provider with persitence to an api server. Uses redis-pubsub for horizontal scaling. Also provides logic of read-only/read+write access to documents.
git clone [email protected]:kapv89/yjs-scalable-ws-backend.git
cd yjs-scalable-ws-backend
npm ci
- thepostinstall
scriptfix_y-websocket.js
fixes the dev-dependencyy-websocket
npm run build
cp .env.example .env.test.local
- Update
.env.test.local
as per your system. docker-compose up
to start redisnpm run watch
in a terminal tabnpm run test
- Go through
src/__tests__/app.test.ts
to view details for tests