Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 626 Bytes

README.md

File metadata and controls

9 lines (8 loc) · 626 Bytes

Code your own blockchain in less than 200 lines of Go!

Deployment steps:

  • git clone https://github.com/Alfinandika/blockchain-go.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) to http://localhost:8080/ with a JSON payload with BPM 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.