TODO
TODO
Test the chaincode (Hyperledger Fabric Peer dev mode)
- Download Hyperledger Fabric Samples
- Open a Terminal in your machine:
cd fabric-samplescd chaincode && git clone https://github.com/ascatox/product-unit-hub-chaincode.git(Only first time)cd ../chaincode-docker-devmodechmod +x script.sh(Only first time)docker-compose -f docker-compose-simple.yaml up -d(Stop the network using:docker-compose -f docker-compose-simple.yaml down)docker exec -it chaincode bash(from now you are inside the container)cd product-unit-hub-chaincode && go buildCORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=productUnitHub:0 ./product-unit-hub-chaincode
- Open a new Terminal in your machine:
docker exec -it cli bashpeer chaincode install ... (TODO)peer chaincode instantiate ... (TODO)peer chaincode invoke ... (TODO)
TODO
If the cli docker service doesn't start correctly, execute the 2nd series of step, then execute docker restart cli, now you can execute the other 3rd series of steps.