Untitled_.Mar.24.2023.10_32.AM.webm
- Configure environment variables in a .env file and then run fdp-play. If you need a postage stamp, run unit tests found in
y-fdp-storage
and enable postage stamps seed in jest setup.
# example
REACT_APP_BEE_URL=http://localhost:1633
REACT_APP_BEE_POSTAGE=1c082c5e642e15d49b6689f5437c2eb9e6aa9c546a8ed1d11d0024b043bca371
- Install demo with
npm i
- Run react app with
npm run start
- Open
http://localhost:3000
in two different tabs - Fill in
Private Key
andDocument Name
value and click Connect - Write anything in text editor
- Wait a few seconds and watch editors being synchronized
y-fdp-storage
uses Yjs as CRDT sync mechanism while storing data in Swarm using a Swarm Sequence Feed. To grab the latest updates, y-fdp-storage
long-polls setLastUpdate
on the sequence feeds and auto updates inside a setInterval
to the swarm feed.
A fdp-play
environment or a Bee RPC url plus its batch id.