Read our blog post first to see a walkthrough of the code.
- Networking
- Proof of Work
- Proof of Stake
- IPFS
- P2P
- Advanced Concepts for Beginners
- Start your own Hyperledger blockchain the Easy Way!
- Build a DApp on Hyperledger the Easy Way!
- Build your own Blockchain Twitter recorder
git clone https://github.com/mycoralhealth/blockchain-tutorial.git
- navigate to this directory and rename the example file
mv example.env .env
go run main.go
- open a web browser and visit
http://localhost:8080/
- to write new blocks, send a
POST
request (I like to use Postman) tohttp://localhost:8080/
with a JSON payload withBPM
as the key and an integer as the value. For example:
{"BPM":50}
- Send as many requests as you like and refresh your browser to see your blocks grow! Use your actual heart rate (Beats Per Minute) to track it over time.