This Dapp is presented in the context of product traceability. The farmer registers his product with all the information and then validates the transaction Then on another account, a supermarket searches for a product and then buys it. The last part concerns the customer who enters the supermarket for his purchases. This checks the QR codes to get all the details about the product from production at the farmer to purchase by the supermarket.
Download the source code then install the necessary node packages via
npm install
run ganache (the RPC network is: https://127.0.0.1:7545)
configure the ethereum network on metamask and add its accounts.
run the project with
npm run dev
The proposed interface contains 3 buttons for the 3 business processes. Follow the steps in order and wait for transactions to be confirmed before moving on to another process (ex: switching from market purchase to customer to view). As the market buys products, the products are available to the customer (an increase of the QR codes to the number of products)