A basic Ethereum DApp demonstrating the coffee supply chain from the farmer's harvest to the customer's final consumption.
- Truffle v5.7.9 (core: 5.7.9)
- Ganache v7.7.5
- Solidity - 0.8.17 (solc-js)
- Node v18.14.2
- Web3.js v1.8.2
- sol2uml 2.5.1 - To generate solidity Class Diagram
https://goerli.etherscan.io/address/0xfa86941c9c7c4a14979e693408a8724e007eb33e
From root directory:
npm install
npm install truffle
npm install -s @truffle/contract
npm install -s web3
npm install -g ganache-cli
./node_modules/.bin/truffle compile
./node_modules/.bin/truffle migrate --reset
./node_modules/.bin/truffle test
./node_modules/.bin/truffle deploy
npm run dev
- Edit
infuraKey
andmnemonic
intruffle-config.js
truffle migrate --network goerli
https://ipfs.io/ipfs/QmV8mPAkgn9oyuSviKbyGbmkT9kjFoLmfFKB7fUsfs7NBD/ipfsc/