The Real-Time Event Ticketing System is a multi-component application designed for efficient ticket management using a command-line interface (CLI), a backend API built with Spring Boot, and a front-end application developed in Angular. This system allows vendors and customers to interact with the ticketing system in real-time, leveraging multi-threading and concurrency to ensure optimal performance.
Key features include:
- Multi-threaded vendor and customer simulation.
- VIP customer prioritization for higher access priority.
- SQLite database integration for persistence.
- Dynamic configuration of system parameters via CLI.
- API backend for real-time data management.
- Angular front-end for visualization and user management.
The CLI is a core component that provides direct interaction with the system.
Main Menu
===== Real-Time Event Ticketing System =====
1. Configure System Parameters
2. Vendors Management
3. Ticket Management
4. View Sales Log
0. Exit
============================================Submenus
- Configure System Parameters
- Manage vendors dynamically, with options to add, update, or remove
===== Manage Vendors ===== 1. Show All Vendors 2. Add Vendor 3. Update Vendor 4. Remove Vendor 5. Back to Main Menu ===========================================
- Vendors Management
- Manage vendors dynamically, with options to add, update, or remove
===== Manage Vendors ===== 1. Show All Vendors 2. Add Vendor 3. Update Vendor 4. Remove Vendor 5. Back to Main Menu ===========================================
- Ticket Management
- Monitor and control the ticketing system operations
===== Ticket Management ===== 1. Show Status 2. Start System 3. Stop System 4. Restart System 5. Back to Main Menu ===========================================
- Sales Log
- View real-time transaction logs of ticket sales.
The Spring Boot API acts as the backend layer, handling:
- Integration with SQLite database for storing vendors, customers, and tickets.
- RESTful endpoints for system management and real-time data retrieval.
- Synchronization of CLI and front-end interactions.
The Angular-based front-end provides:
- A user-friendly interface to visualize ticket availability, sales logs, and system statistics.
- Real-time updates from the backend.
- Vendor and customer management tools.
- Each vendor and customer operates in a separate thread.
- VIP customers are prioritized using a custom queuing mechanism.
- Thread-safe operations are implemented using synchronized methods and thread-safe collections.
- Persistent storage of vendor, customer, and ticket data.
- Automatic runtime updates:
- Vendors added or removed from the database are reflected dynamically in the running system.
- Parameters such as ticket release rate and maximum ticket capacity can be updated at runtime via the CLI.
Prerequisites
- Java 21+
- Node.js 18+
- Angular CLI
- SQLite
- Access the main menu to manage configurations, vendors, ticketing operations, and logs.
- Start or stop the ticketing system and monitor real-time status updates.
- Use RESTful endpoints for integration or management tasks.
- Refer to the API Documentation for detailed endpoint descriptions.
- Access the Angular application at http://localhost:4200.
- Manage vendors, visualize ticket availability, and view logs
- Java: Core application logic and CLI.
- Spring Boot: Backend API development.
- Angular: Front-end user interface.
- SQLite: Persistent database storage.
- Multi-threading: Vendor and customer simulation.