TobiaszCudnik / todomvc-blockstack-asyncmachine

Sample TodoMVC app with a blockchain and Gaia backends featuring sharing capabilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Redux replaced with AsyncMachine
  2. react-scripts replaced with a dedicated webpack config (for CORS)
  3. Authentication via a blockchain using blockstack.js - Auth
  4. Data stored to Gaia via blockstack.js - Storage
  5. Sharing using user-to-user keys and multi-reader storage (inspired by blockstagram)

Usage

  1. Install the blockstack browser
  2. Add todos.local to your /etc/hosts file
    127.0.0.1     todos.local
  3. git clone https://github.com/TobiaszCudnik/todomvc-blockstack-asyncmachine.git
  4. npm install
  5. npm start
  6. Visit http://todos.local:8080/

For sharing you need to register a named Blockstack ID, eg Alice.id.

Video

video

Missing

  • syncing deletions
  • conflict resolution using automerge
  • managing subscribers
  • more error handling
  • pulling / push notifications

About

Sample TodoMVC app with a blockchain and Gaia backends featuring sharing capabilities


Languages

Language:JavaScript 98.2%Language:HTML 1.8%