The Railway Management System is a comprehensive web-based application designed to streamline and manage the essential functionalities of a railway system. This system facilitates user-friendly interactions for passengers, administrators, and other stakeholders, ensuring a seamless railway experience.
- Passenger Registration and Login: Secure registration and login for passengers.
- Ticket Booking: Reserve tickets for train journeys.
- Ticket Cancellation: Cancel existing reservations with ease.
- Search Trains: Find trains by route, timing, or availability.
- Running Status: Check the real-time status of trains.
- Travel Updates: Stay updated with important travel notifications.
- Privacy Policy: View the privacy and terms of service.
- Admin Login: Secure login for administrators.
- Passenger Management: Access and manage passenger details.
- Train Management: Add, update, or remove train schedules.
- Reports and Insights: Generate reports for cancellations, bookings, and other activities.
The user interface is built with HTML and includes the following templates:
- Home Page (
home.html): Overview of the system. - Login/Registration:
login.htmlregistration1.html,registration2.html,registration3.html
- Ticketing System:
ticket.html(Booking)cancel.html(Cancellation)
- Admin Controls:
adminlogin.htmladminrights.html
- Passenger Details:
passengers.html - Travel Updates and Running Status:
travelupdates.htmlrunningstatus.html
- Privacy and T&C:
privacypolicy.htmlt&c.html
web.py: Backend logic to handle requests, manage user data, and process ticket bookings.
- Schema:
Railway.mwb - SQL Data:
Railway_database.sql- Tables for passengers, tickets, train schedules, admins, etc.
- Preloaded data for testing and demonstration.
-
Clone the Repository
git clone https://github.com/Ganesh-403/Railway-Management-System.git -
Set Up the Database
- Import
Railway_database.sqlinto your MySQL or SQLite environment. - Ensure the connection details in
web.pymatch your database setup.
- Import
-
Run the Backend
- Install the necessary Python libraries:
pip install flask mysql-connector - Start the server:
python web.py
- Install the necessary Python libraries:
-
Access the Application
- Open your browser and navigate to
http://localhost:5000.
- Open your browser and navigate to
- MySQL or SQLite for the database.
- Python 3.8+ with Flask framework.
- Flask
- MySQL-Connector or SQLite3
Include images/screenshots of your application for visual representation:
- Home Page
- Ticket Booking Page
- Admin Dashboard
Contributions are welcome! Feel free to fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.