/SupplyChain-ALOG

projet Alog ESI SIL 2022

Primary LanguageJavaScript

Soja Supply chain

This Dapp has been developed as part of the software architecture cours, ESI, SIL, 2022. It is intented to showcase the main modules of our architecture as well as data transfer.

The contract addresses of this dapp

Contract Owner: 0x247dfD5Caa1b43fD250BC5a7c1ca7AA981E04D0a
Farmer: 0x31b0A166D85A16C1f09076966669d1D4eDaE76E4
Distributor: 0x80918761DCfB83aF8578333AC62CADd52cAb96A5
Retailer: 0xbBa5FE9bEc5eb476CFEA889Da951e9f83D1aa2a8
Consumer: 0x24DD4F9dBcEA7be7D89907733B8d3106b32ce5Fa

Prerequisites

Please make sure you've already installed ganache-cli, Truffle and enabled MetaMask extension in your browser.

npm install -g truffle ganache-cli

Installing

npm install
ganache-cli -m "enroll tongue pass submit strike concert attack sport world club model name"

In a separate terminal window, test the DApp:

truffle compile
truffle migrate
truffle test

launch the DApp:

npm run dev