Skip to content

theod0sis/CoffeeSupplyChain

Repository files navigation

Coffee Supply Chain DAPP

This is the third project for @Udemy Blockchain developer Nanodegree. The purpose of this project is to go over how smart contracts can work as an extremely valuable resource for the management of supply chains.

What this dapp will do:

"Coffee Supply Chain" dapp is a decentralized application that covers the supply chain of Coffee, from farmers to consumers. The user story is similar to any commonly used supply chain process. A Seller can add items to the inventory system stored in the blockchain. A Buyer can purchase such items from the inventory system. Additionally, a Seller can mark an item as Shipped, and similarly a Buyer can mark an item as Received.

Where you can find the contracts:

All contracts are on Rinkeby Ethereum test network.

Technology versions used:

- Solidity version ^0.5.16
- Truffle version v5.1.20
- truffle-hdwallet-provider version ^1.0.0-web3one.5
- web3 version ^1.2.6
- node version v10.15.0
- npm version 6.4.1

For testing:

- Chai
- Mocha

Run Crypto Star dapp local:

Prerequisites

You need to have a ganache ui up and running

Commands for running local

npm install
truffle compile
truffle migrate
cd app
npm run dev

To run the unit test:

truffle test

TESTS

Sample transactions from UI:

Product Overview:

FarmerUI

Farmer Details:

FarmerUI

Transactions to ehterscan:

Product Details

ProductUI

Transactions to ehterscan:

Transaction History

TransactionHistory

About

A Supply Chain Tracking decentralized application on the Ethereum blockchain. Third project for Udacity Blockchain Developer Nanodegree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors