Installing prerequisites

With the design of the network in hand, lets 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/
  3. 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 
..................Content has been hidden....................

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