Spring MVC app with flight search engine.
I've created this project to learn Spring MVC and Thymeleaf. Unfortunately no company provides for free REST API with flight data, so I had to create flight generator then built REST API to get mocked flight data. You can create account, change password, remove account or add flight to cart. Frontend is responsive, so you can check this project on your phone.
- Java 17
- Spring 2.7.3
- Spring Boot
- Spring Security
- Spring Web
- Thymeleaf
- Bootstrap
- Junit 5
- Hibernate
- PostgreSQL
git clone https://github.com/bladeours/flight-search-engine.git
docker-compose up -d
App runs on 8084 port, but you can change it in .env
file.
If you want change how many flights should be generated then change NUMBER_OF_ROWS
in .env
file.
Docker compose runs:
- flight-web-db - PostgreSQL database for flight search engine app
- flight-web-app - This app
- flight-api-db - MySQL database for API with flights
- flight-api-app - API with flights
- flight-generator - flight generator
- airport-api-db - MongoDB database for API with airports
- airport-api-db-seed - Container for importing data to airport-api-db
- airport-api-app - API with airports
- Check official PostgreSQL documentation
psql -U username -d flightSearchEngineDB -a -f database/flight_search_engine/create_database.sql
This app requires Java 17
-
Download release
-
java -jar flightSearchEngine.jar
-
app runs on port 8084
- Simply find your airports from list
- chose your flight
- click Take this flight!
- now you can see flight in your cart
- click profile on navigation bar
- then easily change password
- Add sending mail
- Add return flight
- Add luggage
- Reduce amount of airports