Food supply chain Monitoring on a blockchain network
- Clone the Entire Repo.
- If working with windows install WSL and start working in virtual linux environment.
- Install Nodejs and golang and npm(latest versions).
- Install docker and docker compose.
SetUp Block-chain network
- cd to test_network.
- execute command ./network.sh up -ca (node peers, orderer, certificate authorities starts running)
- execute command ./network.sh createChannel (channel with default name myChannel gets created)
Deploy chain-code(smart contract) on peers and channel
- execute command ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go
Start Application server
- Open a new tab in terminal.
- cd to asset-transfer-basic/application-javascript.
- Run npm install and node app.js to start app server.
Official Docs: https://hyperledger-fabric.readthedocs.io/en/release-2.2/