Skip to content

arya-vats/supply-chain-truffle-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 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!

About

Simple supply chain simulation using blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.9%
  • Solidity 15.2%
  • HTML 2.6%
  • CSS 2.3%