Installing prerequisites

With the design of the network in hand, let's install the pre-requisite tools:

  1. Ensure that you have the latest version of:
  1. We will be using GitHub to share the source code of our tutorial. To access GitHub, the Git client needs to be installed and configured with authentication to GitHub. For more information, visit GitHub's official website at https://help.github.com/articles/set-up-git/.

 

  1. Install the software required for the business network example: https://hyperledger.github.io/composer/latest/installing/installing-prereqs.
    The instructions above are for the Mac and Linux. Note that when using Windows, we recommend the use of a solution like Vagrant to run the development environment in a virtual machine.
  2. Fabric is implemented in the Go language. Note that:
    • Go is syntactically similar to C++
    • We will also use Go to write chaincodes
    • Go can be installed from https://golang.org/

Note that the setup of Hyperledger Fabric and testing of the tutorial application in this book was done using Go 1.9, so the reader is advised to install and use 1.9 or a higher version
  1. Next, we need to set up our environmental variables.

  GOPATH points to a workspace for the go source code, for example:

         $ export GOPATH=$HOME/go 

PATH needs to include the Go bin directory used to store libraries and executables, as we can see in the following snippet:

         $ export PATH=$PATH:$GOPATH/bin 
  1. Verify whether you have make installed on your system. On a Debian/Ubuntu system, you can install it using sudo apt-get install make.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.5.201