Sample app demonstrating CRUD (create, read, update, delete) operations.
Each participant can modify items in their own 'board' or list; this is a simple hack to avoid overwriting conflicts when used in groups. Each update brings the respective board to the top so that other participants know what changed.
For CRUD operations with Automerge, see Checklist.
Copy webxdc.js
from Hello into this folder.
It's possible to simply open index.html
in your web browser, but the collaborative aspect is better accessed over a server.
If your computer has php installed, you can try:
php -S localhost:3000
- Open http://localhost:3000 in your web browser
- Click 'Add Peer' to open as many peers as you like
- Type a message and press 'Send' to see the update in each peer. (For Safari you might need to check the setting under Develop > Disable Local File Restrictions.)