Participants
Nonprofit Organizations
Medical Providers
Government Agencies
Refugees
Assets
BankAccounts
Transactions
Transfer
Events
Transaction
npm install -g composer-cli
- Hyperledger composer-rest-server
npm install -g composer-rest-server
- Hyperledger Fabric Tools
/getTools.sh
cd fabric-tools
./downloadFabric.sh
./startFabric.sh
./createPeerAdminCard.sh
npm install
npm test
cp fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/<cert> .
cp fabric-tools/fabric-scripts/hlfv1/composer/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/<key> .
composer card create -p connection.json -u PeerAdmin -c [email protected] -k <keyfile> -r PeerAdmin -r ChannelAdmin
composer card import -f PeerAdmin\@fabric-network.card
composer runtime install -c PeerAdmin@fabric-network -n harbor-ledger-network
composer network start -c PeerAdmin@fabric-network -a dist/harbor-ledger-network.bna -A admin -S adminpw
composer card import -f admin\@harbor-ledger-network.card
composer-rest-server -c admin@harbor-ledger-network -n never -w true
This will start a rest server listening at: http://localhost:3000
Browse your REST API at http://localhost:3000/explorer
nohup composer-rest-server -c admin@harbor-ledger-network -n never -w true > ~/rest.stdout 2> ~/rest.stderr & disown
composer archive create --sourceType dir --sourceName . -a dist/harbor-ledger-network.bna
composer network update -a dist/harbor-ledger-network.bna -c admin@harbor-ledger-network
To tear down your development session
cd ~/fabric-tools
./stopFabric.sh
./teardownFabric.sh