This is an exercise of blockchain for Udacity program. This blockchain tracks the supply chain of coffee bean from farmers to consumers.
Here are following participants that have different permissions:
- Farmers
- Retailers
- Distributors
- Consumers
- Ethereum
- Truffle
- NodeJS
IPFS is not used
- clone the repositotry to your local computer: git clone [email protected]:waterwheel31/blockchain-supplychain.git
- install modules: npm install
- launch ganache: ganache-cli -m "spirit supply whale amount human item harsh scare congress discover talent hamster"
- complie smart contracts: truffle compile
- migrate smart contracts: truffle migrate
- run DApp: npm run dev
- Node: v10.16.0
- Truffle: v5.0.40 (core: 5.0.40)
- web3: v1.0