Supply chain contract with front end web page using Drizzle
Create Product Details and Particpants who will be stored onto the blockchain ledger Built using truffle and solidity
- Install Truffle and Ganache CLI globally and dependencies for React. If you prefer, the graphical version of Ganache works as well
npm install -g truffle
npm install -g ganache-cli
npm install //Installs React node_modules
- Download the box. This also takes care of installing the necessary depenencies.
truffle unbox drizzle
- Run the development blockchain
ganache-cli
- Compile and migrate the smart contracts. Note inside the development console we don't preface commands with
truffle
.
compile
migrate --reset
- Run the webpack server for front-end hot reloading (outside the development console). Smart contract changes must be manually recompiled and migrated.
// Serves the front-end on http://localhost:3000
npm run start