This is a PHP software that finds available flights assuming at most 2 stopovers. It's developed using PHP Laravel framework, ReactJS framework, and CoreUI for React. The problem is solved by revisiting the Bellman-Ford algorithm.
TAB1 - airport
- id
- name
- code
- lat
- lng
TAB2 - flight
- code_departure
- code_arrival
- price
Try to create a PHP algorithm that finds the lowest price, given two different airport's code in TAB1, assuming at most 2 stopovers! At the end, represent it in a working landing page.
- Docker and Docker Compose (Application containers engine). Install it from here https://www.docker.com
Clone the repository:
$ git clone https://github.com/IvanBuccella/FindFlightsSet your own environment variables by using the .env-sample file. You can just duplicate and rename it in .env.
Build the local environment with Docker:
$ docker-compose build$ docker-compose upYou can use the application by visiting the http://localhost:${FRONTEND_PORT} URL.