kaleb-be / Et-Agro-Blo-ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

agro chain

This document presents the operation of the “agro chain” platform

Project tree

Context

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.

To start

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)

About


Languages

Language:JavaScript 99.6%Language:HTML 0.3%Language:Solidity 0.0%Language:CSS 0.0%