Skip to content

Alirizvi11/MedLedger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧬 MedLedger – Blockchain-Powered Medicine Verification

A Web3 decentralized platform to verify medicine authenticity using IPFS, Smart Contracts, and QR-based lookup.
Built by Team Forzentix at hackathon speed ⚡.

MedLedger Banner


🚀 Live Demo & Links


🛠️ Tech Stack

  • Frontend: React.js, TailwindCSS
  • Backend: Node.js, Express.js
  • Blockchain: Ethers.js + Avalanche Fuji Testnet
  • Storage: IPFS (Pinata Gateway)
  • QR: Dynamic QR rendering for CID lookup

📦 Features

✅ Register new medicine batches with CID + txHash
✅ Lookup by Batch Number or CID
✅ Fetch metadata directly from IPFS (with fallback)
QR-based traceability – scan to verify instantly
✅ Sleek Dark/Light UI Toggle for judges & users
Hackathon-friendly modular architecture


🖼️ Screenshots

🧭 Welcome Page

Dashbord

🧭 Sign Up

SignUpPage

🧭 Wallet Connect

WalleConnect

📚 Dashbord

DashBord

📚 Quick Actions

QuicActions

📚 Medicine Registration

MedicineRegestrations

🔐 Medicine Validation

MedicineValidation

📊 Register Organ

RegisterOrgans

📊 Qr Scan

QrScan


📂 Folder Structure

MedLedger/
├── backend/
|     ├── node_modules/          # Python cache files (ignored) 
|     ├── abi/
|     ├── artifacts/
|     ├── cache/
|     ├── config/
|     |     └── contract.js
|     ├── contracts/
|     |     └── MedLedger.sol
|     |     └── MedLedgerDonor.sol
|     |     └── MedLedgerOrgan.sol
|     ├
|     ├── data/
|     ├── routes/
|     |     └── api.js
|     |     └── consent.js
|     |     └── donor.js
|     |     └── donorInfo.js
|     |     └── donorLookup.js
|     |     └── medicine.js
|     |     └── medicineLookup.js
|     |     └── organ.js
|     |     └── stats.js
|     |     └── verify.js
|     |     
|     ├── scripts/
|     |     └── deploy.js
|     ├── scripts/
|     |     └── blockchain.js
|     |     └── ipfs.js
|     |     └── pintaUploader.js
|     |      
|     ├── test/
|     ├── utils/
|     |     └── uploadToIPFS.js
|     ├── .env
|     ├── env.js
|     ├── package.lock.json
|     ├── hardhat.config.js
|     ├── pakage.json
|     └── server.js
|
|
├── frontend/
|     ├── node_modules/           
|     ├── public/    
|     ├── src/      
|     |     ├── components/
|     |     |     └──  BlobBackground.jsx
|     |     |     └──  DashbordsStats.jsx
|     |     |     └──  DashbordsSystem.jsx
|     |     |     └──  QRViewer.css
|     |     |     └──  QRVivewr.jsx
|     |     |     └──  Lucidelcons.jsx
|     |     |     └──  StatsDashbord.jsx
|     |     |
|     |     |
|     |     ├── pages/
|     |     |     └──  ConsentVerify.jsx
|     |     |     └──  Dashboard.jsx
|     |     |     └──  DonerLookup.jsx
|     |     |     └──  Login.jsx
|     |     |     └──  MedicineLookup.jsx
|     |     |     └──  Registerbatch.jsx
|     |     |     └──  RegisterOrgan.jsx
|     |     |     └──  ScanQr.jsx
|     |     |     └──  ScanVerify.jsx
|     |     |     └──  Welcome.jsx
|     |     |
|     |     ├── app.css
|     |     ├── App.jsx
|     |     ├── index.css
|     |     └── main.jsx
|     |
|     ├──.gitignore
|     ├──package-lock.json
|     ├──package.json
|     ├──postcss.config.js
|     ├──tailwind.config.js
|     └──README.md
|
├──screenshots/
└──README.md

🧪 Run Locally

Clone repo

git clone https://github.com/Alirizvi11/MedLedger.git

Start Backend

cd backend npm install node server.js

Start Frontend

cd ../frontend npm install npm run dev


🛡️ Security & Reliability

🔐 Private key handling with dotenv 🧪 Reproducible smart contract calls 📈 Benchmarked against traceability standards ⚡ Gas-efficient & IPFS-resilient storage


👨‍💻 Team Forzentix

7a54cba21fec42c42598f5531a41961d955be4de

Name Role GitHub
** Ali Rizvi ** Backend Architect @ali-rizvi
** Lokendra ** Frontend Lead @loky
** Abhay ** Blockchain Dev @abhay

📬 Contact

📧 teamforzentix@gmail.com

🌐 Team Portfolio

About

MedLedger is a full-stack blockchain-powered platform for verifying medicine authenticity using IPFS, smart contracts, and QR-based traceability. Built for hackathons, optimized for judges—this project combines backend precision, frontend clarity, and decentralized trust.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors