Execute the commands on the project root directory.
- Creating the BN archive.
$ composer archive create -n . -t dir -a dist/airline@0.0.1.bna
- Installing the BNA to fabric.
$ composer network install -c PeerAdmin@hlfv1 -a dist/airline@0.0.1.bna
- Starting the BNA.
$ composer network start -c PeerAdmin@hlfv1 -n airline-network -V 0.0.1 -A admin -S adminpw
- Importing the network card that has been created.
$ composer card import -f admin@airline-network.card
- Testing the network.
$ composer network ping -c admin@airline-network
$ composer-rest-server -c admin@airline-network -n always -w true
- John Doe (johnd) is the Network Administrator
$ composer participant add -d '{"$class":"org.acme.airline.participant.ACMENetworkAdmin","participantKey":"johnd","contact":{"$class":"org.acme.airline.participant.Contact","fName":"John","lName":"Doe","email":"john.doe@acmeairline.com"}}' -c admin@airline-network
- Will Smith (wills) works in the Logistics department
$ composer participant add -d '{"$class":"org.acme.airline.participant.ACMEPersonnel","participantKey":"wills","contact":{"$class":"org.acme.airline.participant.Contact","fName":"Will","lName":"Smith","email":"will.smith@acmeairline.com"}, "department":"Logistics"}' -c admin@airline-network
$ composer identity issue -u johnd -a org.acme.airline.participant.ACMENetworkAdmin#johnd -c admin@airline-network -x
$ composer identity issue -u wills -a org.acme.airline.participant.ACMEPersonnel#wills -c admin@airline-network -x
$ composer card import -f johnd@airline-network.card
$ composer card import -f wills@airline-network.card