Huawei Blockchain-day3 Punch-compile in cloudide environment

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.