Repository files navigation Fake Product Identification using Blockchain
Truffle v5.6.7 (core: 5.6.7)
Ganache v7.5.0
Solidity v0.5.16 (solc-js)
Node v15.8.0
Web3.js v1.7.4
npm 7.5.1
Any chromium based browser i.e. Chrome
Metamask browser extension
Go to the project folder, open terminal there and run following command to install required node_modules:-
Compile contract source files. (Compilation and deployment can be done using truffle migrate):-
Open Ganache, (to setup local blockchain)
crerate new workspace
add truffle-config.js in truffle project
change port to 7545 in server settings (same as port in truffle-config.js)
In chrome, open metamask
add new test network using
NETWORK ID (i.e. 5777 ,from Ganache Server settings)
RPC SERVER (i.e HTTP://127.0.0.1:8545 ,from Ganache Server settings)
CHAIN CODE (i.e. 1337)
import account using private key of any account from local blockchain available in Ganache.
In terminal, run following commands:-
Run migrations to deploy contracts.
To start a server and it will open a homepage (index.html) file in the default browser.
Login to metamask ,and connect the added account to local blockchain (i.e.localhost:3000)
Interact with website
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.