Skip to content

codetit4n/supply-chain-truffle-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Supply Chain Simulation

Supply chain simulation using blockchain.

🔧 Setting up Local Development

Step 1

Open ganache UI/cli and configure truffle-config.js file. Not required for most cases.

Step 2

Import the ganache local blockchain accounts in metamask using the mnemonic provided.

Step 3

Clone the repo

git clone https://github.com/codeTIT4N/supply-chain-truffle-react.git
cd supply-chain-truffle-react

Step 4

Compile and deploy the smart contract

npx truffle compile
npx truffle migrate

NOTE: If you make changes in the smart contract you have to redeploy it using npx truffle migrate --reset

Step 5

Install node_modules using yarn

cd client
yarn

Install node_modules using npm

cd client
npm install

Step 6

Start the development server using yarn

yarn start

Start the development server using npm

npm start

The site is now running at http://localhost:3000! Open the source code and start editing!