You find the fully completed blockchain application for the required functions in this repository.
Please use linux base os or linux subsystem to run this network
- install Hyperledger fabric
- exatract the chaincode.zip file
- copy apiserver file inde into the "fabric-samples/fabcar/" folder
- replace fabcar.js "file with fabric-samples/chaincode/fabcar/javascript/lib/"
- open the terminal and set route inside to the "fabric-samples/fabcar"
- run neworkDown.sh (./neworkDown.sh)
- run startFabric.sh with javascript (./startfabric.sh javascript)
- change directry inside to the qpiserver folder
- install nodemodals (npm install) 10)delete all inside the "fabric-samples/fabcar/blockchain_app/wallet" if there any file 11)run enrollAdmin.js with node (node enrollAdmin.js) 12)run registerUser.js with node (node registerUser.js) 13)run apiserver.js with node (node apiserver.js) 14)run app.py inside the "/fabric-samples/fabcar/blockchain_app/views" 15)take the server link from python terminal and paste in the browser.