Skip to content
No description, website, or topics provided.
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
UML
build/contracts
contracts
migrations
src
test
.gitignore
README.md
bs-config.json
package-lock.json
package.json
truffle-config.js

README.md

Supply Chain DApp

DApp supply chain that lets you track wine authenticity on the Ethereum blockchain.


DApp screenshot

Setup project:

Notes: The project has been tested with Truffle v5.0.4, Solidity 0.5.0 and npm v10.15.1

  1. Clone the repository
  2. Run command npm install to install the project dependencies.
  3. Start Ganache
  4. truffle compile --all
  5. truffle --network ganache migrate --reset
  6. npm run dev to run the application
Notes

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
0x0BB5AE997acB147Ce45Bac4e568AB2C29Ae03a35

UML:

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.


Activity diagram

Activity diagram


Sequence diagram

Sequence diagram


State diagram

State diagram


Class diagram

Class diagram

Roadmap

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:

  1. Store the tx history inside the blockchain;
  2. Integrate Google Map on the front-end;
  3. Deploy the DApp to IPFS;

Credits

Wine supply chain

The basic concept fo the supply chain is trying to map the Wine Supply Chain Traceability GS1 Application Guideline:

Theme

*https://startbootstrap.com/themes/agency/

Images
You can’t perform that action at this time.