Hyperledger Fabric network require 3 config files that we have to personnalized every single time we change our network structure. This script automate it.

This tutorial will show you how to create and launch your customize Hyperledger Fabric Network.

Tutorial made on Ubuntu 16.04

1. Install prerequisites and get Hyperledger Binary :

2. Start to work :

Clone git repository :

Copy all useful binary (configtxgen & cryptogen) from Hyperledger Fabric, paste it on Hyperledger-Fabric-Automate-Installer folder and go to this folder :

cd fabric-samples/bin/

cp configtxgen cryptogen ../../Hyperledger-Fabric-Automate-Installer

cd ../../Hyperledger-Fabric-Automate-Installer

Give execution right to all the files :

sudo chmod 755 *

We must now set up some environment variable thank to env.sh file, do not hesitate to change values you want :

Execute it :

sudo ./env.sh

We’r know ready to create our network ! Just launch gen.py using python3 :

python3 gen.py

The program will ask you some questions :

The name of the network you want to create

The name of a channel that will be automatically created (will all peer joinned)

The name of your first Org, the number of peer for this org

If you want to create others org, say Yes as many times as you need.

(channel and network name MUST be in lowercase)