/Udacity-Coffee-Tracking

nd1309-Project-6b-Example-Template

Primary LanguageJavaScript

Supply chain & data auditing

Deployment

Used Software & Libraries

  • Node v16.12.0
  • Truffle @5.4.22
  • truffle/hdwallet-provider @1.7.0 (for deployment and testing on rinkeby)
  • Web3 @1.6.1 (used only in client/browser)

UML Diagrams

Activity

activity diagram

Sequence

sequence diagram

State

state diagram

Data Model

data diagram

Getting Started

Installing

A step by step series of examples that tell you have to get a development env running

Change directory to project-6 folder and install all requisite npm packages (as listed in package.json):

cd project-6
npm install

Launch Ganache:

ganache-cli -m "spirit supply whale amount human item harsh scare congress discover talent hamster"

Your terminal should look something like this:

truffle test

In a separate terminal window, Compile smart contracts:

truffle compile

Your terminal should look something like this:

truffle test

This will create the smart contract artifacts in folder build\contracts.

Migrate smart contracts to the locally running blockchain, ganache-cli:

truffle migrate

Your terminal should look something like this:

truffle test

Test smart contracts:

truffle test

All 10 tests should pass.

truffle test

In a separate terminal window, launch the DApp:

npm run dev

Built With

  • Ethereum - Ethereum is a decentralized platform that runs smart contracts
  • IPFS - IPFS is the Distributed Web | A peer-to-peer hypermedia protocol to make the web faster, safer, and more open.
  • Truffle Framework - Truffle is the most popular development framework for Ethereum with a mission to make your life a whole lot easier.

Acknowledgments

  • Solidity
  • Ganache-cli
  • Truffle
  • IPFS