blockchain-tutorial

command module
v0.0.0-...-26e06bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 13 Imported by: 0

README

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

Tutorial

Read our blog post first to see a walkthrough of the code.

Check out our follow-up tutorials:
Deployment steps:
  • 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) 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

screen

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL