Intro to Private Blockchains

Setting up your Developer Environment

It’s as easy as 1, 2, 3, 4, 5, 6 … 42… 101… etc. Keep in mind, setting up one node is just the beginning. To fully test Hyperledger, you’ll want to create an entire local network using Docker. We’ll get to that shortly.

As you might expect, there are a myriad of ways to setup up a local development environment and configurations can vary widely. We’ll help you get started with some basics and hopefully save you some headaches. To start, open up a shell and let’s get on with the good stuff! For each dependency listed below, run the command shown to verify that it’s installed correctly. If it is not installed, you will need to install binaries from either a package manager or directly.

These installation instructions are specifically for Mac OS X. Ubuntu installation instructions will be the same, but Homebrew will not be required.


Before we get started, use the following commands to verify that you have the correct software installed. If it fails, click the link in each description for full installation details.


If you’re using a Mac, check your homebrew version with the following command. ( Install Homebrew Here )


Check that homebrew is installed

[email protected]: ~/ $ brew -v


We’ll need curl to download some example files. ( Install Here )


Check that homebrew is installed

[email protected]: ~/ $ curl --version


Docker is a tool that creates controlled execution environments to support node simulations. For this course we’ll need you to have docker and docker-compose. ( Install Here )


Check that docker is installed

[email protected]: ~/ $ docker --version
[email protected]: ~/ $ docker-compose ---version


Go is a scripting language which can be used to write Hyperledger chaincode. ( Install Here )


Check that Go is installed

[email protected]: ~/ $ go version