Installing Hyperledger Composer

Pre-Requisites:

To run Hyperledger Composer and Hyperledger Fabric, 4 GB of memory required. If you are running Ubuntu system on virtual-box then system need at least 12–16GB RAM.

Installing Hyperledger Composer on Ubuntu-14.04/Ubuntu-16.04:

Download the prerequisites using the following commands:

ls -la
chmod u+x prereqs-ubuntu.sh
./prereqs-ubuntu.sh

Installing the development environment:

Before you begin

docker kill $(docker ps -q)docker rm $(docker ps -aq)docker rmi $(docker images dev-* -q)
npm install -g composer-cli
npm install -g composer-rest-server
npm install -g generator-hyperledger-composer
npm install -g yo
npm install -g composer-playground
mkdir ~/fabric-tools && cd ~/fabric-toolscurl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.zipunzip fabric-dev-servers.zip
cd ~/fabric-tools./downloadFabric.sh

Controlling your development environment:

Starting and Stopping Hyperledger Fabric:

You control your runtime using a set of scripts which you’ll find in ~/fabric-tools if you followed the suggested defaults.

The first time you start up a new runtime, you’ll need to run the start script, then generate a PeerAdmin card:

cd ~/fabric-tools./startFabric.sh./createPeerAdminCard.sh
composer-playground

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store