An open API service indexing awesome lists of open source software.

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.

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