Day 03 Job---Blockchain core technology-distributed ledger
First of all, thanks to the great God of the class, especially thanks to the id "learning to build a chain of money" children's shoes Guide. Completed the punch-out task.
1. Cloudide Application
1) Directly online search IDE, you can see cloudide as follows, free trial.
2) Click Experience Now, Jump: Https://devcloud.huaweicloud.com/cloudide/home. You can see the following interface. (currently cloudide is in beta, you can create up to 1 working spaces)
Next is the default next, you need to create a cloudide called AAA (Custom), technology stack select Go workspace, into the IDE.
2. Upload Upload
1) Upload assistant issued the job homework package (here remember, need to re-compress the job into a zip package upload)
2) New terminal
3) Unzip the homework.
$ $CD/projects/aaaa (to the Guide folder path)
$ $unzip Homework.zip (unzip homework file)
4. Perform Tasks
1) Check whether the Linux machine has a Go language compilation environment and use the Go Help command
Instructions have been installed go, if not this information display, click https://golang.org/dl/link Download go
Install the language installation package, configure the environment variables, and then use the command display.
2) Configure Gopath environment variables, use GO command go build to compile code
$$ Cd/projects/aaaa/ledger-reader/src/ledger
$$ Export Gopath=/projects/aaaa/ledger-reader/vendor
$$ Go build -tags nopkcs11 (the bold part needs to be added, I've been stuck here for a long time)
3) Execute executable file $$./edger
Enter your name and the channel name you want to display to complete the punch-out task
Subsequent:
Overall, the IDE environment experience is very good, and requires further learning the go language, understanding the Reader.go condensed the blockchain data structure essence of the simple 80 lines of code.