/go-blockchain

This is a basic implementation of blockchain in golang

Primary LanguageGo

Go-Blockchain

This is a Golang based implementation of a basic blockchain.

Testing and Development

  • Clone the project
  • Choose the running port in the .env file in root. Currently it runs on localhost:8080
  • Run go run main.go
  • Open a web browser and visit http://localhost:8080/. You will see the genesis block here.
  • 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.

Screenshot