https://github.com/saspal02/ticketbookingsystem
A simple CLI project designed for booking and managing train tickets.
https://github.com/saspal02/ticketbookingsystem
gradle java json
Last synced: 2 months ago
JSON representation
A simple CLI project designed for booking and managing train tickets.
- Host: GitHub
- URL: https://github.com/saspal02/ticketbookingsystem
- Owner: saspal02
- License: mit
- Created: 2025-02-07T17:30:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-09T01:24:41.000Z (over 1 year ago)
- Last Synced: 2025-04-04T21:44:28.580Z (over 1 year ago)
- Topics: gradle, java, json
- Language: Java
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎟️ Ticket Booking System (CLI-Based)
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
## 🚀 Features
- **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
## 🛠️ Technologies Used
- **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.
## Prerequisites
Before you start using the Ticket Booking System, make sure you have the following installed:
1. Java Development Kit (JDK) version 8 or higher.
2. A terminal or an IDE (e.g., IntelliJ IDEA, Eclipse) to run the project.
3. Gradle for dependency management.
## 📦 Setup & Run
### Step 1: Clone the repository and run it in your IDE
https://github.com/saspal02/Ticketbooking.git
cd TicketBookingSystem
### Step 2: Build the project
./gradlew clean build
### Step 3: Run the application
./gradlew run