- The producer can register him as a producer
- After registration he can add products, the attributes of a product are
- Product ID
- Product name
- Price
- Quantity
- The producer should be able to change the price if he wants.
- Customer can view the products
- Customer can order the products (no need of sending money, only COD)
- Customer can track the product using the order ID
- The status of the order are
- Placed
- Rejected
- Delivered
- The producer has the authority to change the status of the product (when the customer places an order, the status will be “Placed”).
Install metamask wallet
using this Link. Just collect some ether and you are good to go.
Install node.js
and npm
then http-server
$ sudo apt install nodejs npm
$ sudo npm install http-server -g
Clone the repository and start http-server
.
$ git clone https://github.com/suvambasak/supply-chain-ethereum.git
$ cd supply-chain-ethereum/
$ http-server
Goto : http://localhost:8080/