/fair-trade-coffee

Fair Trade Coffee dApp is the supply chain project given as part of the Udacity Blockchain Developer Nano-Degree Program

Primary LanguageJavaScript

Fair Trade Coffee dApp - Udacity Blockchain Developer Nano-Degree Program

Fair Trade Coffee dApp is the supply chain project given as part of the Udacity Blockchain Developer Nano-Degree Program

UML Diagrams

Libraries Used

  • Node v16.13.1
  • Solidity v0.8.10
  • Truffle v5.5.6
  • Truffle Assertions v0.9.2 - Used to easily assert events on the ethereum blockchain during unit testing
  • Truffle HD Wallet Provider v1.0.17 - HD wallet enabled Web3 provider used for deploying the contract on to the live networks
  • Truffle Plugin Verify v0.5.24 - Used to automatically verify the contracts on the live networks
  • dotenv v16.0.0 - Used to manage secrets as local environment variables

IPFS Usage

The web3 frontend is not deployed to the IPFS network

Run Locally

  1. On the project root run npm install
  2. On the root directory and run truffle develop to run the local ganache blockchain
  3. To compile the contracts run compile
  4. To run the migrations run migrate --reset
  5. To run the unit tests run test
  6. To run the frontend, run npm run serve to run the webpack dev server.
  7. Navigate to http://localhost:3000 to see the application running.

Contract Details - Rinkeby Network

Screenshots

Events - Deployed Contract on Rinkeby Events - Deployed Contract on Rinkeby