Fleet and Vehicle Management Portal

Fleet portal with document expiry alerts, safe trip booking rules, service due, fuel mileage and cost per km, drivers and licences, challans and a QR tag with public check. Python, Flask, Bootstrap, SQLite.

  • Price: ₹1,999
  • Category: Web App
  • Technology: Python, Flask, Bootstrap 5, SQLite, Chart.js
  • Includes: Source code + database
  • Suitable for: BCA / B.Sc CS, MCA / M.Sc CS, B.E / B.Tech CSE & IT

Project overview

This is a full fleet website that runs on a normal PC. There are two roles. The fleet manager sees a dashboard (vehicle status, alerts, running cost per month), manages vehicles with their documents, service history, fuel entries and trips, books trips (with the safety rules), manages drivers and licences, records challans, reads the alerts page (expired or missing documents, expiring documents, service due, licences, unpaid challans) and the analytics page (mileage, fuel cost per km, service cost, utilisation), and prints a vehicle history report (PDF) and a QR tag. A driver sees only own trips: starts a trip with the odometer, completes it, logs fuel for the vehicle of the running trip, and sees own licence and challans. A public page checks the mandatory documents of a vehicle by its number or by scanning the QR tag, without showing owner, driver or trip data. Electric vehicles need no PUC. Security: hashed passwords, a lock after 5 wrong passwords, CSRF tokens in every form, role checks on every page, a driver sees only own data, 15-minute idle logout. 28 rule tests and 171 web checks are included.

Modules

  1. Login, roles and public check: Fleet manager and driver roles; hashed passwords; lock after 5 wrong passwords; public document check by number or QR tag.
  2. Vehicles and documents: Registration number validation; Insurance, PUC, Fitness, Permit, Road tax with expiry; Valid / Expiring / Expired / Missing; Blocked label for unsafe vehicles.
  3. Trip booking: Booking rules: no overlap for vehicle or driver, mandatory documents valid until the last day, licence valid and of the right class; start and complete with the odometer.
  4. Service: Service history; the next service is set by km and date; Due / Soon / OK; repairs and tyres; workshop status.
  5. Fuel and mileage: Fuel entries with price, odometer and mileage checks; km per litre (km per kWh for electric); cost per km; CSV.
  6. Drivers: Driver records with licence class and expiry; logins; deactivate; licence alerts; own trips, licence and challans for the driver.
  7. Challans: Fines with vehicle and driver; paid and unpaid; unpaid total on the dashboard and in the alerts.
  8. Alerts, analytics and reports: Alerts page (critical first); dashboard with cost chart; analytics per vehicle; PDF history report; QR tag.
  9. Audit log: Every important action (login, vehicle, document, trip, fuel, service, challan, driver) is written to an audit log.

Requirements

  • Python 3.11
  • Internet once, to install the libraries (about 2 minutes)
  • Windows 10 / 11

How to run this project

  1. Install Python 3.11 from python.org and tick "Add python.exe to PATH" during setup.
  2. Extract the zip and open the project folder (STUDENT_GUIDE.md explains every step in simple words).
  3. Double-click `1_INSTALL.bat` once and wait until it says [OK] (about 2 minutes; it downloads the libraries into a private .venv folder).
  4. Double-click `2_RUN.bat` to start the project. Your browser opens http://127.0.0.1:5000 by itself. If it does not start, double-click `CHECK_SETUP.bat` and read what it says.
  5. Log in as fleet manager admin / admin123 (driver driver1 / demo123). The public document check is on the login page: type TN 58 BA 1036.
  6. Open Alerts, then Vehicles with Documents = Blocked: record a renewed document, open the QR tag and the PDF report; try to book a blocked vehicle (refused). Log in as driver1 to log fuel and complete the running trip.

More Web App projects