Login/SignIn in into the System(Compulsory), Authentication is done through firebase (Check firebase.js)
This is the home screen where the customer views and orders drugs
The activities Recorded on the blockchain for verification. (You need to be logged into meta mask to continue)
Only the right blockchain account can do certain operations. Make sure to use the right account If confused checkout youtube
Manufacturer can generate QR-Code as well as download them and attach to products
Donloading Qr-code
Scanning to verify QR-Code on product
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/Muddejosh/Counterfeit-Drug-Detection-and-Prevention-Blockchain-System.git cd supply-chain-truffle-reactCompile and deploy the smart contract
npx truffle compile npx truffle migrateNOTE: 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 yarnInstall node_modules using npm
cd client npm installStart the development server using yarn
yarn startStart the development server using npm
npm startThe site is now running at http://localhost:3000! Open the source code and start editing!






