Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒพ Smart e-Ration Distribution System

A full-stack PHP & MySQL web application that digitizes the Public Distribution System (PDS) by enabling citizens to request ration online, verify identity, generate QR-based pickup tokens, and allowing administrators and shopkeepers to efficiently manage ration distribution.


๐ŸŒ Live Demo

Website: https://smart-eration.42web.io


โœจ Features

๐Ÿ‘ค Citizen Module

  • Secure Citizen Verification
  • OTP Verification
  • Family Details
  • Rice Allocation
  • Request Ration
  • QR Code Token
  • Pickup Time Slot
  • Nearby Ration Shops
  • Interactive Maps

๐Ÿ›’ Shopkeeper Module

  • Secure Login
  • Pending Requests
  • Verify Token
  • Distribute Ration
  • Scan Citizen Details
  • Today's Distribution
  • Logout

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

  • Admin Authentication
  • Dashboard
  • Add Citizen
  • Add Shop
  • Manage Stock
  • Stock Records
  • Change Password
  • Session Management

๐Ÿ›  Tech Stack

Frontend

  • HTML5
  • CSS3
  • JavaScript

Backend

  • PHP 8

Database

  • MySQL
  • MySQLi

APIs & Libraries

  • Fast2SMS API
  • Leaflet.js
  • OpenStreetMap
  • QR Code API

Hosting

  • InfinityFree
  • phpMyAdmin

๐Ÿ“ธ Screenshots

๐Ÿ  Home & Shopkeeper Portal

Home Shopkeeper Portal

๐Ÿ” Admin Authentication & Stock Management

Admin Login Stock Management

๐Ÿ“ฆ Stock Records & Citizen Portal

Stock Records Citizen Portal

๐Ÿ“ฒ OTP Verification & Digital Token

OTP Verification Digital Token

๐Ÿ—‚ Project Structure

e-ration-system/

admin/
shopkeeper/
config/
css/
qrcodes/

index.php
citizen-login.php
family-details.php
send-request.php
verify-otp.php
timeslot.php
nearby-shops.php

README.md

๐Ÿ—„ Database Design

The application uses 6 relational tables.

Table Purpose
admins Admin Authentication
shopkeepers Shopkeeper Accounts
citizens Citizen Information
family_members Family Details
ration_shops Shop Locations
ration_requests Distribution Requests

๐Ÿ”„ Workflow

Citizen Login
      โ”‚
      โ–ผ
OTP Verification
      โ”‚
      โ–ผ
Family Details
      โ”‚
      โ–ผ
Request Ration
      โ”‚
      โ–ผ
QR Token Generation
      โ”‚
      โ–ผ
Shopkeeper Verification
      โ”‚
      โ–ผ
Ration Distribution

๐Ÿš€ Installation

Clone Repository

git clone https://github.com/Pulipati-Rahul/e-ration-distribution.git

Move Project

htdocs/e-ration-system

Import Database

e_ration_system.sql

Configure

config/db.php

Start Apache & MySQL using XAMPP.


๐Ÿ”‘ Demo Credentials

Admin

Username : admin
Password : admin123

Shopkeeper

Username : shop
Password : shop123

Citizen

Name : Ramesh Kumar
Card : RC100001
Aadhaar : 123456789012
Mobile : 9876543210

๐ŸŽฏ Key Functionalities

  • Role-based Authentication
  • Password Hashing (bcrypt)
  • Session Management
  • OTP Verification
  • QR Code Generation
  • Location-based Shop Finder
  • Stock Management
  • Request Tracking
  • Token Verification
  • Responsive UI

๐Ÿ”’ Security Features

  • Password Hashing
  • PHP Sessions
  • SQL Injection Prevention
  • Authentication Checks
  • Role-based Access
  • OTP Validation

๐Ÿ”ฎ Future Enhancements

  • SMS Gateway Integration
  • Email Notifications
  • Aadhaar API Integration
  • Online Payments
  • Real-time Stock Monitoring
  • Government Portal Integration
  • Analytics Dashboard

๐Ÿ“š Learning Outcomes

This project helped in understanding:

  • PHP Backend Development
  • MySQL Database Design
  • Session Management
  • Authentication Systems
  • CRUD Operations
  • REST-style Workflows
  • QR Code Generation
  • Maps Integration
  • Deployment on InfinityFree

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

Pulipati Rahul

Full Stack Developer

GitHub: https://github.com/Pulipati-Rahul

LinkedIn: https://www.linkedin.com/in/pulipatirahul

Portfolio: https://pulipatirahul.vercel.app


โญ Support

If you found this project helpful, consider giving it a โญ on GitHub.

It motivates me to continue building high-quality projects.

About

Full-stack E-Ration Distribution System with authentication, inventory management, and admin dashboard.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages