cryptocurrency study.
- install dependencies
yarn
- start a peer
yarn dev
- start another peer
WEB_PORT=5001 PEER_PORT=8001 yarn dev
- connect to peer
curl -H "content-type:application/json" --data '{"endpoint" : "ws://127.0.0.1:8001"}' http://localhost:5000/peer
- mine a block
curl -H "content-type:application/json" --data '{"data" : "Not Enough Minerals"}' http://localhost:5000/mine