Skip to content

The Pune Metro System is a Flask-MySQL-based metro ticketing system that allows users to issue metro cards, book tickets with discounts, track ride history, and manage transactions efficiently. πŸš†βœ¨

License

Notifications You must be signed in to change notification settings

champst2004/pune-metro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

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

Repository files navigation

πŸš† Pune Metro System

A Metro Ticketing System built using Flask (Python) and MySQL.
Users can issue metro cards, book metro tickets, and track ride history with discounts for students.

πŸ“œ Features

βœ… User Management: Admin & Normal Users
βœ… Metro Card System: Regular (10% discount) & Student (25% discount)
βœ… Ticket Booking: Select stations & calculate fare dynamically
βœ… Transaction Logging: Tracks payments & fare deductions
βœ… Ride History: View past metro rides

🏷️ Fare Calculation

β‚Ή10 for the next station
β‚Ή15 for traveling 2 stations ahead
β‚Ή20 for traveling 3 stations ahead
β‚Ή25 for traveling 4 stations ahead
β‚Ή30 for more than 5 stations

Discounts:
MITWPU Students: 25% discount
Regular Card Holders: 10% discount
Non-Card Holders: No discount


πŸ“‚ Tech Stack

  • Backend: Flask (Python) 🐍
  • Frontend: HTML, CSS, JavaScript 🎨
  • Database: MySQL πŸ—„

πŸ”§ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/champst2004/pune-metro.git
cd pune-metro

2️⃣ Install Dependencies

Make sure you have Python installed. Then, install the required libraries:

pip install -r requirements.txt

3️⃣ Set Up the Database

Run tables.sql and stations.sql to create database and tables

πŸš€ Running the Application

1. Start the Flask App

python app.py

2. Open in Browser

http://127.0.0.1:5000/

πŸ–₯ Pages in the App

Page URL Description
Home / Landing page
Issue Card /issue_card Issue a new metro card
View Users /view_users Show all users who have issued a metro card
Book Ticket /book_ticket Select stations, calculate fare, and book a ride
Ride History /ride_history View past rides of metro card users

About

The Pune Metro System is a Flask-MySQL-based metro ticketing system that allows users to issue metro cards, book tickets with discounts, track ride history, and manage transactions efficiently. πŸš†βœ¨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published