/flight-search-engine

Web application with flight search engine

Primary LanguageJava

Flight Search Engine

Spring MVC app with flight search engine.

Table of Contents

General Info

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.

Related repositories

Technologies Used

  • Java 17
  • Spring 2.7.3
    • Spring Boot
    • Spring Security
    • Spring Web
  • Thymeleaf
  • Bootstrap
  • Junit 5
  • Hibernate
  • PostgreSQL

Setup

Run with Docker

  • 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:

Install on local machine

Install PostgreSQL

Import data

  • psql -U username -d flightSearchEngineDB -a -f database/flight_search_engine/create_database.sql

Run app

This app requires Java 17

  • Download release

  • java -jar flightSearchEngine.jar

  • app runs on port 8084

Overview

Add flight to Cart

  • Simply find your airports from list

img.png

  • chose your flight

img.png

  • click Take this flight!

img.png

  • now you can see flight in your cart

img.png

change password

  • click profile on navigation bar

img.png

  • then easily change password

img.png

Room for Improvement

  • Add sending mail
  • Add return flight
  • Add luggage
  • Reduce amount of airports