Supply Chain DApp
DApp supply chain that lets you track wine authenticity on the Ethereum blockchain.
Notes: The project has been tested with Truffle v5.0.4, Solidity 0.5.0 and npm v10.15.1
- Clone the repository
- Run command npm install to install the project dependencies.
- Start Ganache
- truffle compile --all
- truffle --network ganache migrate --reset
- npm run dev to run the application
If switching accounts while using Metamask you probably will have to cancel the transaction history from the settings and reload the page.
Contract on Rinkeby
|Contract address on Rinkeby test network|
IMPORTANT NOTE: Activity, sequence and state diagrams have been updated. Consumer buyWine has been renamed purchaseWine to remove ambiguity with retailer buyWine. The sequence diagram has been updated: fetchHistory has been removed, fetchGrape has been added. The class diagram has been updated to reflect changes in the DApp smart contracts inheritance.
I'm running late and have been busy with exceptional workload so a lot of features are missing and I hope to develop then further:
- Store the tx history inside the blockchain;
- Integrate Google Map on the front-end;
- Deploy the DApp to IPFS;
Wine supply chain
The basic concept fo the supply chain is trying to map the Wine Supply Chain Traceability GS1 Application Guideline: