The goal of this project is to be able to represent supplychains of real products on the Ethereum blockchain.
- Solidity smart contract
- Client to interact with the contract
- Add product
- Search product
- Add quality label
- Search quality label
- Add Link between products
- Link quality label to product
- Remove Link of any kind
The client visualizes the supplychain as a tree graph.
- Add Metamask to your browser.
- Add Goerli Testnetwork to Metamask:
- Network name: Goerli
- New RPC URL: https://ethereum-goerli.publicnode.com
- Chain ID: 5
- Currency symbol: ETH
- If the RPC URL doesn't work, search for a new one here.
- Mine at least 0.02 Goerli ETH from Goerli Faucet.
To set up the frontend:
- Complete the Metamask setup mentioned above.
- Install dependencies using
npm install
. - Obtain an Infura API key.
- Add the key to the appropriate file.
- Run the script using
node ./frontend_and_backend/script.js
to test if everything is working properly.
To deploy a contract on the Goerli Testnet, follow the steps outlined in this guide. You may need between 0.1 and 0.5 GöETH for this process.