Skip to content

suhaillink/QR-Distribution-Verification-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“± QR Distribution Verification System

Prevent duplicate distribution β€’ Verify instantly β€’ Manage beneficiaries in real-time

screenshot

GitHub stars GitHub forks License Firebase


🧠 Overview

The QR Distribution Verification System is a mobile-friendly web application that allows organizers to register and verify beneficiaries using QR codes.

It eliminates manual registers, token slips, and confusion during public distribution programs.

A simple smartphone becomes a real-time verification device.


❗ The Problem

Distribution programs often rely on manual tracking.

This creates serious issues:

  • 🧾 Paper lists get messy
  • πŸ” Same person collects multiple times
  • 😠 Arguments at the counter
  • 🧍 Genuine people miss their turn
  • ⏱ Slow queues

We needed a solution that was:

  • simple
  • fast
  • usable by volunteers
  • fair

πŸ’‘ The Idea

Every card already contains a QR code.

So instead of giving people tokens…

➑ Use the QR as a unique digital identity.

Scan once β†’ register Scan again β†’ verify Give item β†’ mark collected

No duplicates. No confusion.


βš™οΈ How It Works

Scan QR β†’ Check database β†’ Eligible β†’ Give item β†’ Mark collected
Action Result
First scan Registers beneficiary
Second scan Checks eligibility
After marking Prevents duplicate collection

✨ Features

  • πŸ“· QR code scanning
  • ☁ Cloud database
  • 🚫 Duplicate prevention
  • πŸ•’ Date & time tracking
  • πŸ‘¨β€πŸ’Ό Admin dashboard
  • πŸ“± Mobile-only operation
  • 🌐 Works from any location
  • πŸ‘₯ Multiple volunteers supported

πŸ–₯ Admin Dashboard

The admin panel displays:

  • all registered QR IDs
  • collection status
  • timestamps
  • duplicate detection

βœ” = Collected ❌ = Not collected


🧰 Tech Stack

Technology Purpose
HTML / CSS / JS Frontend
Firebase Hosting Deployment
Firebase Firestore Database
html5-qrcode Scanner engine

πŸš€ Installation Guide

1️⃣ Create Firebase Project

Go to:

https://console.firebase.google.com

Create a new project.


2️⃣ Enable Database

Build β†’ Firestore Database β†’ Create Database β†’ Test Mode

3️⃣ Enable Hosting

Build β†’ Hosting β†’ Get Started

4️⃣ Install Tools

Install NodeJS first:

https://nodejs.org

Then install Firebase CLI:

npm install -g firebase-tools
firebase login

5️⃣ Clone Repository

git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git
cd YOUR_REPO

6️⃣ Initialize Firebase

firebase init

Select:

  • Firestore
  • Hosting

Public directory:

public

Single Page App β†’ YES


7️⃣ Add Your Firebase Config

Go to:

Firebase Console β†’ Project Settings β†’ Web App β†’ SDK configuration

Copy:

const firebaseConfig = { ... }

Open:

public/index.html

Replace the existing firebaseConfig with yours.


8️⃣ Deploy

firebase deploy

You will receive:

https://your-project.web.app

Open on phone β†’ start scanning πŸŽ‰


πŸ” Admin Login

Default password:

123456

Change inside index.html:

if(pass!=="123456")

πŸ“ Database Structure

Collection:

families

Document stores:

  • registered_date
  • collected_date
  • status

🌍 Use Cases

  • Food distribution
  • Relief camps
  • Event check-in
  • Token redemption
  • Coupon validation
  • Attendance tracking

🎨 Customization

You can modify:

  • colors & theme
  • language
  • password
  • UI text
  • layout

Everything is in:

public/index.html

🀝 Contributing

Pull requests are welcome.

Ideas:

  • Offline support
  • Multi-event support
  • Export to Excel
  • Native Android wrapper

πŸ“œ License

Free to use for community and non-commercial purposes.


❀️ Final Note

This project was created to solve a real-world operational problem.

Not as a tutorial.

Not as a demo.

But to make distribution fair, transparent, and respectful.

If it helps your community, the project achieved its purpose.

About

Mobile-friendly QR code verification system to register and verify beneficiaries, prevent duplicate distribution, and track collection status in real-time using Firebase.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages