Skip to content

rabeesh/gochain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn basic of Block chain

This code heavily inspired from "Code your own blockchain in less than 200 lines of Go"

Technologies used

  • negroni - For application split ups
  • spew - Print formatted structs in console

Deployment steps:

  • git clone https://github.com/rabeesh/gochain.git
  • navigate to this directory and rename the example file mv config/.env-sample config/.env
  • go run main.go
  • open a web browser and visit http://localhost:8082/api/blocks
  • to write new blocks, send a POST request to http://localhost:8080/api/blocks 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.

About

Learn basic of block chain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages