Skip to content

Product SupplyChain ETH is a decentralized supply chain management system built on top of the Ethereum blockchain.

License

Notifications You must be signed in to change notification settings

Aymen-Tirchi/AlgeriaChain

Repository files navigation

Product SupplyChain ETH

Introduction

Product SupplyChain ETH is a decentralized supply chain management system built on top of the Ethereum blockchain. It allows manufacturers, warehouse logistics providers, delivery hubs, and customers to interact with each other in a secure and transparent manner. This system provides an immutable and transparent ledger to record all the transactions that take place in the supply chain, ensuring that all stakeholders have access to the same information.

Installation and Setup

Prerequisites

yarn, git, docker(optional)

Clone the repository

git clone https://github.com/Aymen-Tirchi/AlgeriaChain.git && cd AlgeriaChain

Install dependencies

yarn install

Configure ganache-cli

Configure ganache-cli for 10 accounts and extend gasLimit to 6721975000 and beyond, so as to have enough gas for migrating the smart contracts and a data flow for the prototype.

yarn ganache

Run the local node in Docker (optional)

if you want to run the ganache-cli on docker then use the following command

yarn docker

Open a second terminal and deploy the contracts

yarn deploy

Enter the client folder

cd client

Install all packages in the package.json file

yarn install

Setup an .env file

create .env file and enter the google maps api key and set the react rpc port to 8545 since the ganache-cli runs on the same port by default. The final .env file must look like this

REACT_APP_GOOGLE_MAP_API_KEY=*************************
REACT_APP_RPC=http://127.0.0.1:8545/

Run the app

yarn start

The app gets hosted by default at port 3000.

License

This project is licensed under the MIT License.

About

Product SupplyChain ETH is a decentralized supply chain management system built on top of the Ethereum blockchain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published