Summary of key steps
As a reference to our readers, we list the sequence of operations that must be performed to bring up a network and distributed application from scratch and run transactions on it. We supply shortcut commands using the Bash scripts in trade-network
wherever applicable. You should choose the ordering service type in the beginning and run all commands in the appropriate mode:
- Create cryptographic and channel artifacts (the
-m
switch is optional):$ ./trade.sh generate -c tradechannel -o 3 [-m prod] $ ./trade.sh generate -c shippingchannel -o 4 [-m prod]
- Launch the network:
$ ./trade.sh up [-m prod]
- Create channels, join peers to channels, and set anchor peers for organizations:
$ ./startAndJoinChannels.sh
- Install and initialize contracts. You can do this manually using VS Code or by running the following shortcut command:
$ ./sampleChaincodeOperations.sh
- Create a
wallets...