Ethereum Dapp for Coffee Beans
- Start Ganache
- Clone the reposotory
git clone https://github.com/rushikeshacharya/Coffee-Beans
cd Coffee-Beans
- Install node dependencies
npm i
4.Compile and Migrate the contracts
truffle compile
truffle migrate
- To run test cases
npm run test
- To start the Web Application
npm run dev
-
Open below URL in the browser http://127.0.0.1:3000
-
To run code coverage report
truffle coverage
- Add Farmer
- Add Distributor
- Add Retailer
- Add Consumer
- Note: Only the respective role accounts can add other users. i.e Only the Farmers can add other users as a Farmer and likewise.
- Node version: v12.16.1
- Truffle version: v5.1.19
- web3 version: v1.2.1
SupplyChain Contract Address: 0xb8a125237ba0c8c870775375dd317a18a2b78f0d