Last active
January 13, 2018 13:49
-
-
Save 0x3bfc/3d969cc684e93e745e00ef3ab4bc2e6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # For more info about the below commands check out the below links: | |
| # https://hyperledger.github.io/composer/installing/development-tools.html | |
| # https://hyperledger.github.io/composer/tutorials/developer-tutorial.html | |
| curl -O https://hyperledger.github.io/composer/prereqs-ubuntu.sh | |
| chmod u+x prereqs-ubuntu.sh | |
| ./prereqs-ubuntu.sh | |
| bash | |
| npm install -g composer-cli | |
| npm install -g composer-rest-server | |
| npm install -g generator-hyperledger-composer | |
| npm install -g yo | |
| ls | |
| mkdir ~/fabric-tools && cd ~/fabric-tools | |
| curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.zip | |
| unzip fabric-dev-servers.zip | |
| sudo apt-get install unzip | |
| unzip fabric-dev-servers.zip | |
| ls | |
| sudo ./downloadFabric.sh | |
| sudo ./startFabric.sh | |
| ./createPeerAdminCard.sh | |
| composer card list --name PeerAdmin@hlfv1 | |
| yo hyperledger-composer:businessnetwork | |
| tutorial-network/ | |
| cd models/ | |
| vi org.example.biznet.cto | |
| cd ../lib/ | |
| vi logic.js | |
| cd .. | |
| vi permissions.acl | |
| composer archive create -t dir -n . | |
| composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName tutorial-network | |
| composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile tutorial-network@0.0.1.bna --file networkadmin.card | |
| sudo docker ps -a | |
| composer card import --file networkadmin.card | |
| ls | |
| vi networkadmin.card | |
| composer network ping --card admin@tutorial-network | |
| composer-rest-server -c admin@tutorial-network -n never -w true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment