Getting Started With Hyperledger Composer

WHAT IS HYPERLEDGER COMPOSER?

SETTING UP THE ENVIRONMENT

1 docker kill $(docker ps -q)
2 docker rm $(docker ps -aq)
3 docker rmi $(docker images dev-* -q)
1 mkdir ~/fabric-tools && cd ~/fabric-tools2 curl -O https://raw.githubusercontent.com/hyperledger/composer-  tools/master/packages/fabric-dev-servers/fabric-dev-servers.zip3 unzip fabric-dev-servers.zip
1 cd ~/fabric-tools
2 ./downloadFabric.sh
3 ./startFabric.sh
4 ./createPeerAdminCard.sh
1 npm install -g composer-cli
1 npm install -g generator-hyperledger-composer

ARCHITECTURE

CREATING A SIMPLE BUSINESS NETWORK

1 yo hyperledger-composer:businessnetwork
1 Network name : acme-network2 Namespace : org.acme
1 composer archive create -t dir -n .
1 composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName acme-network2 composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile acme-network@0.0.1.bna --file networkadmin.card
1
2
3
composer card import --file networkadmin.card
composer network ping --card admin@trucerts-network
composer card export --file networkadmin.card -n admin@trucerts-network

--

--

DevOps/Cloud | 2x AWS Certified | Terraform | Gitlab

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