Blockchain DApp built on ethereum to track product lifecycle, Read this file to get it running on your system
**Prerequisites: Ganache, MetaMask **
-
After Installing Files, run the below command on your root directory npm install -g truffle
-
Install http server to run our frontend npm install -g http-server
-
Compile the truffle files, by running the below command on root truffle compile
then run truffle migrate
-
Copy ContractABI from build json file to app.js , and add contract address in app.js obtained from hash address after running truffle migrate
-
Connect your metamask account to local ganache using private key obtained from Ganache GUI
-
Connect to localhost in MetaMask by adding a network with RPC obtained from Ganache (mostly HTTP://127.0.0.1:7545) , chain id and name gets configured atomatically and add ETH as currency.
-
Thats it! now run the frontend by "http-server client" (from root) and open the frontend and conect ypur metamask account, you can now add and transfer products to other accounts (login through other metamask wallet to approve the transactions) !