This is a sample project of Fabric 1.2.0 running a chaincode developed in Node.js. For a complete explanation about the construction and execution of the network please read the Medium article (Portuguese only).
- Docker 18.06.0 or later
- Docker-compose 1.22 or later
- Node.js 8.11.x family
- NPM (Node Package Manager) 5.6.0 or later
- cURL 7.x
./downloadBinaries.sh
cd network
../bin/cryptogen generate --config=./crypto-config.yaml
../bin/configtxgen -profile OrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
../bin/configtxgen -profile OrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID samplechannel
../bin/configtxgen -profile OrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/ProviderMSPanchors.tx -channelID samplechannel -asOrg ProviderMSP
../bin/configtxgen -profile OrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/ConsumerMSPanchors.tx -channelID samplechannel -asOrg ConsumerMSP
docker-compose up -d