TodoMVC using Blockstack.js and AsyncMachine
Sample TodoMVC app with a blockchain and Gaia backends featuring sharing capabilities.
Based on the Redux TodoMVC example, with the following changes:
- Redux replaced with AsyncMachine
react-scripts
replaced with a dedicatedwebpack
config (for CORS)- Authentication via a blockchain using blockstack.js - Auth
- Data stored to Gaia via blockstack.js - Storage
- Sharing using user-to-user keys and multi-reader storage (inspired by blockstagram)
Usage
- Install the blockstack browser
- Add
todos.local
to your/etc/hosts
file127.0.0.1 todos.local
git clone https://github.com/TobiaszCudnik/todomvc-blockstack-asyncmachine.git
npm install
npm start
- Visit
http://todos.local:8080/
For sharing you need to register a named Blockstack ID, eg Alice.id
.
Video
Missing
- syncing deletions
- conflict resolution using automerge
- managing subscribers
- more error handling
- pulling / push notifications