Smart contract deployed on ethereum blockchain network which acts as intermediary between two parties to overcome trust issues and perform fair trade between them.
The smart contract is based on the use case of seller and buyer to support commercial transactions. The seller deploys the smart contract to the blockchain and buyers place orders using contract functions, seller sends the confirmation regarding the details of the product and delivery charges to buyer. The buyer confirms the order and payout to the contract. Seller then initiates a shipment with the details regarding the product and charges. The seller and courier was paid out by the contract at the end of the delivery.
1) Install soldity compiler: npm install solc
2) Install truffle framework: npm install -g truffle
3) Install ganache app image or ganache-cli
- Clone the project
git clone [email protected]:nitish81299/supply-chain.git
- Run ganche-cli in a seperate terminal window or use app image and create a workspace running on port
8545
- To compile smart contract run:
truffle compile
- Deploy contract to local blockchain running on ganache by:
truffle migrate
- Write tests
- Create UI to interact with smart contract