Supply chain simulation using blockchain.
Open ganache UI/cli and configure truffle-config.js file. Not required for most cases.
Import the ganache local blockchain accounts in metamask using the mnemonic provided.
Clone the repo
git clone https://github.com/codeTIT4N/supply-chain-truffle-react.git
cd supply-chain-truffle-react
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
Install node_modules
using yarn
cd client
yarn
Install node_modules
using npm
cd client
npm install
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!