Follow the instructions given in the link to install necessary tools and to configure the system: https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html
Follow the instructions to successfully setup the network.
- Change the working directory to /fabric-samples/pdm-network
$ cd ../fabric-samples/test-network
- Use the following command to start the network, with 2 organization org1 and org2 with one peer each (peer0) and an Orderer node.
$ ./network.sh createChannel -ca -s couchdb
- Deploy the chaincode. Note: If default channel name is not used then the following command applies, else remove the channel arguments (-c) and run the command.
$ ./network.sh deployCC -ccn basic_updated -ccp ../chaincode/chaincode-javascript -ccl javascript
This command will deploy a javascript chaincode on mychannel
- Use this command to bring the network down
$ ./network.sh down