Skip to content

Latest commit

ย 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”— Secure Product Chain

A Blockchain-Based Fake Product Detection System that enables manufacturers to register products on the Ethereum blockchain and allows customers to verify product authenticity using QR codes.


๐Ÿ“– Project Overview

Counterfeit products are a major issue across industries. This project uses Blockchain technology to create an immutable product registry where manufacturers can securely register products and customers can verify authenticity by scanning a QR code.


โœจ Features

  • ๐Ÿ‘ค User Registration & Login
  • ๐Ÿ” JWT Authentication
  • ๐Ÿ‘จโ€๐Ÿ’ผ Role-Based Access (Admin, Manufacturer, Customer)
  • โ›“ Ethereum Smart Contract
  • ๐ŸฆŠ MetaMask Wallet Integration
  • ๐Ÿ“ฆ Product Registration
  • ๐Ÿ“ฑ QR Code Generation
  • โœ… Product Verification
  • ๐Ÿ—„ MongoDB Database
  • ๐ŸŒ REST API using Express.js

๐Ÿ›  Tech Stack

Frontend

  • HTML5
  • CSS3
  • JavaScript
  • Ethers.js

Backend

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT Authentication

Blockchain

  • Solidity
  • Hardhat
  • MetaMask
  • Ethereum Local Network

๐Ÿ“‚ Project Structure

SecureProductChain/
โ”‚
โ”œโ”€โ”€ backend/
โ”œโ”€โ”€ frontend/
โ”œโ”€โ”€ contracts/
โ”œโ”€โ”€ ignition/
โ”œโ”€โ”€ screenshots/
โ”œโ”€โ”€ test/
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ hardhat.config.js
โ””โ”€โ”€ README.md

๐Ÿš€ Installation

Clone Repository

git clone https://github.com/Bency-Hanita-Angelica-K/Secure-Product-Chain.git

Install Dependencies

npm install
cd backend
npm install

Start Hardhat Node

npx hardhat node

Deploy Smart Contract

npx hardhat ignition deploy ./ignition/modules/ProductVerification.js --network localhost

Start Backend

cd backend
npm start

Start Frontend

Open the frontend folder using VS Code Live Server.


๐Ÿ“ธ Project Screenshots

๐Ÿ  Homepage

๐Ÿ  Homepage

Homepage


๐Ÿ‘จโ€๐Ÿญ Manufacturer Module

Manufacturer Registration

Manufacturer Registration

Manufacturer Login

Manufacturer Login

Dashboard

Dashboard

Add Product

Add Product

MetaMask Transaction

MetaMask

Product Registration & QR Code Generation

Product Registration and QR Code


๐Ÿ‘ค Customer Module

Customer Registration

Customer Registration

Customer Login

Customer Login

Scan QR Code

QR Scanner

Verify Product

Verify Product

Genuine Product Result

Verified

Invalid Product Result

Invalid Product


๐Ÿ‘จโ€๐Ÿ’ผ Admin Module

๐Ÿ‘จโ€๐Ÿ’ผ Admin Module

Admin Registration

Admin Registration

Admin Login

Admin Login

Admin Dashboard

Admin


โš™๏ธ Technical Setup

MetaMask Connected

MetaMask

Hardhat Local Network

Hardhat

MongoDB Connected

MongoDB

Smart Contract Deployment

Contract Deployment


๐Ÿ”ฎ Future Enhancements

  • Deploy to Ethereum Sepolia Testnet
  • Mobile QR Scanner
  • Admin Approval Dashboard
  • Product History Tracking
  • Cloud Deployment
  • IPFS Integration

๐Ÿ‘จโ€๐Ÿ’ป Author

Bency Hanita Angelica K

Computer Science Engineering Student

Blockchain | Web Development | Cybersecurity Enthusiast


โญ If you like this project

Give this repository a โญ on GitHub.

About

Blockchain based fake product detection system using Ethereum, Hardhat, MongoDB and QR Code verification.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages