This code heavily inspired from "Code your own blockchain in less than 200 lines of Go"
- negroni - For application split ups
- spew - Print formatted structs in console
git clone https://github.com/diegoahg/blockchain.git
- fill the environment variables in
config/.env
- install depenedences
go get
- run de app
go run main.go
First validate if chain is correct and then get all blocks
Send the car data
Request example:
{
"license_plate": "JCBR87",
"owner": "Diego3"
}
Can edit block values
Request example:
{
"index":2,
"owner":"Omar",
"hash":"uyfluyfyf"
}