Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.08 KB

README.md

File metadata and controls

66 lines (42 loc) · 1.08 KB

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!