A train seat booking program using Java and JavaFX for the UI. Additionally MongoDB is used to save/load all the booking data to/from the database.
1st part of the program is to book seats of a train travelling from Colombo to Badulla and the 2nd part of the program is to simulate a queue in the trainstation with the data gathered from the booking part.
- Java JDK 8
- JavaFX
- MongoDB v4.2.8 or higher
- IntelliJ IDEA
- Run the
Booking.java
insidesrc/CW1
- Inisde this console menu you can add, view, delete, find, sort customers by name and save/load booking data to a mongoDB database
- Do the booking part before running the simulation
- Run the
TrainStation.java
insidesrc/CW2
- Inside this console menu you can add, view, delete and save/load queue data to a mongoDB database. Also the option to simulate the passesngers boarding to the train.