A simple CLI project designed for booking and managing train tickets. This project allows users to easily search for available trains, book tickets, cancel reservations, and view booking details
- User Authentication – Secure sign-up and login system
- Train Search – Find trains between selected stations
- Seat Availability – View available seats before booking
- Booking Management – Reserve and cancel train seats
- Data Persistence – Store user and booking information
- Java – Core logic and implementation
- Gradle – Build automation and dependency management
- Collections & Streams API – Efficient data handling
- OOP Principles – Applied Encapsulation, Abstraction, and Polymorphism
The command line interface will look like this:
Running Train Booking System
Choose Option:
1. Sign Up
2. Login
3. Fetch Bookings
4. Search Trains
5. Book a Seat
6. Cancel Booking
7. Exit the app
You can select an option by entering the corresponding number.
Before you start using the Ticket Booking System, make sure you have the following installed:
- Java Development Kit (JDK) version 8 or higher.
- A terminal or an IDE (e.g., IntelliJ IDEA, Eclipse) to run the project.
- Gradle for dependency management.
https://github.com/saspal02/Ticketbooking.git
cd TicketBookingSystem
./gradlew clean build
./gradlew run