Installing prerequisites
With the design of the network in hand, lets install the pre-requisite tools:
- Ensure that you have the latest version of:
- Docker using https://docs.docker.com/install/
- Docker-Compose using: https://docs.docker.com/compose/install/
- 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/.
- 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. - 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/
- 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