Setup Hyperledger Composer to Build Blockchain POC Application

We are going to setup Hyper-ledger Composer Playground with some examples.

Hyperledger Composer Installation

cd $HOME curl -O -k https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh chmod u+x prereqs-ubuntu.sh

run the command to install the:

sudo apt-get install -y software-properties-common

Install Required Components

 npm install -g [email protected]
 npm install -g [email protected]
 npm install -g [email protected]
 npm install -g yo

Install Playground

npm install -g [email protected]

Install Hyperledger Fabric

Create a directory fabric-dev-servers at your home directory.

mkdir ~/fabric-dev-servers && cd ~/fabric-dev-servers

And run curl command to download the tool and unzip it.

curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz
tar -xvf fabric-dev-servers.tar.gz

Download the runtime:

export FABRIC_VERSION=hlfv12

./downloadFabric.sh

Running on the First Time

cd ~/fabric-dev-servers
export FABRIC_VERSION=hlfv12

./startFabric.sh ./createPeerAdminCard.sh

To stop, run this command:

~/fabric-dev-servers/stopFabric.sh

Start the Playground

composer-playground

Leave a Reply

Your email address will not be published. Required fields are marked *