This code is written in order to the Vueling hackathon in colaboration with IT Academy. Made by Pau Sansa.
This code is a MVP for a new travel finder feature. The app consists of two menus:
- Trip Manager
- Trip Search Engine
- Add a new Trip (it can be LandTrip or AirTrip)
- Delete a trip
- Show all Trips
- Search Trips by Name
- Search Trips by City
This code is written only with Java and mySQL, it consists of different classes such as Trip (from which LandTrip and AirTrip derive), TripManager (It is used to create, delete and search for trips) and dbManager (executes all actions related to the database).
When the main method of the program is started, an instance of the app will be created and the init method of the instance will be run.
This init method will run the Trip Manager menu looped (in which you can change to the Search Engine).
In This Trip Manager you will be able to Add a Trip, Delete a Trip or Show All trips.
In this menu you'll be able to search trips by name or city