Skip to content

Adithya-KSM/Railway-reservation-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎫 Ticket Reservation System

A Java-based console application for managing ticket bookings for trains. The system supports user registration, login, ticket booking, cancellations, schedule management, and admin operations.


📌 Features

👤 User Management

  • Register and login
  • View and update profile
  • Admin and Customer roles

🎟️ Ticket Booking

  • Search trains by station and date
  • Book tickets by selecting coach and seat
  • Cancel or modify bookings

💳 Payments

  • Choose payment method: Card, UPI, or NetBanking
  • Automatically assign seat upon successful booking

📅 Schedule Management

  • View station-wise timing
  • Admin can add new trains, coaches, and schedules

💻 Technologies Used

  • Java 17+
  • Console-based UI (no GUI)
  • Java Collections (Map, List)
  • Object-Oriented Programming (OOP)

📂 Folder Structure

TicketReservationSystem/
│
├── src/
│   ├── App.java           # Main class (entry point)
│   ├── User.java          # User class with enum UserType
│   ├── Profile.java       # Profile details and payment method enum
│   ├── Train.java         # Train class with schedule & coaches
│   ├── Coach.java         # Coach with seat availability logic
│   ├── Booking.java       # Booking details and status
│
├── README.md              # You're here!
├── .gitignore             # Optional, to ignore compiled files
└── bin/                   # Compiled .class files (can be ignored in Git)


🚀 Getting Started

1. Clone the Repository

git clone https://github.com/Adithya-KSM/Railway-reservation-system.git
cd Railway-reservation-system

2. Compile and Run

Using terminal:

javac src/*.java
java src.App

Or run from an IDE like VS Code or Eclipse.

🧪 Sample Test Flow

Register a new user View profile and add address/payment method Search for available trains Book a seat View booking details Cancel the booking

About

A Java-based console application for booking train tickets with user management, seat selection, and schedule handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages