A Flask-based fuel station management system that controls fuel distribution using QR/plate scanning, enforces quota rules, and provides real-time analytics for pump owners and admins.
- Pump owner login system
- Session-based authentication
- Secure access to station terminal
- Scan vehicle (QR / plate number)
- Validate against database
- Approve or reject fuel requests
- Supports Petrol, Octane, Diesel
- Automatic liter calculation based on price
- Logs every transaction
- Standard quota (72-hour restriction)
- Emergency quota (higher allowance)
- Prevents over-fueling within restricted time
- Daily sales (taka & liters)
- Fuel type breakdown
- Recent vehicle activity
- Search by vehicle plate
- Search by pump ID
- Monthly & daily reports
- Update vehicle status (Standard / Emergency)
- Audit logs
- Pump owner logs in
- Vehicle is scanned via QR/plate number
- System checks:
- Vehicle existence
- Last fuel time
- Quota rules
- If valid → fuel is dispensed
- Transaction is logged in database
- Admin can monitor everything in real-time
- Backend: Flask (Python)
- Database: MySQL
- Frontend: HTML Templates (Jinja2)
- Session Management: Flask Sessions
- Database Host:
db - User:
root - Password:
rootpassword - Database:
fuel_db
PRICES = {
"Petrol": 120,
"Octane": 125,
"Diesel": 100
}