Deploy/run dApp
This section describes how to deploy and run the Hyperledger Food Supply Chain dApp.
Step 1. Start Hyperledger network and deploy the chaincode
Switch to project folder
$ cd hyperledger-supply-chainSwitch to the network folder
cd network/fabric-networkStart network
./network.sh up createChannel -ca -s couchdbDeploy the chaincode
./network.sh deployCC -ccn supplychain -ccp ../../chaincode -ccl typescriptStep 2. Generate user certificates
Switch to the following folder:
cd hyperledger-supply-chain/web-app/server/fabricRemove previously generated certificates
rm -R wallet/*Run the following commands in sequence to generate identity certificates for admin and manager/employee users.
node enrollAdmin.js
node registerUsers.jsStep 3. Run API
Switch to the web API folder
Start the server
How to stop network
Run the following script from the network folder mentioned above
Last updated
Was this helpful?