This a Projects that contains two API's the first is laravel itself recieving requests and the second is an online flight aviation API that returns flight details based on the provided flight number.
- Laravel is deployed on a "000 web hosting" server, the backend has one (GET) Route that receives the flight number as a parameter and sends it to a free flight aviation API check (https://aviationstack.com/documentation).
- React uses axios to manipulate the HTTP requests, it sends a get request to (https://adamfirsthost.000webhostapp.com/api/getFlightDetails/tk813) with the user's input.
- Laravel receives the request and hits the flight aviation API.
- Laravel then sends a response with the retrieved flight data.
- React stores the data from the response in state and renders the data or returns an error message to the user.
- Clone GitHub repository "git clone https://github.com/adamabusamra/flight_tracker_Laravel-react_API.git OR Download the compressed file.
- React is hosted on a netlify server at https://zen-edison-9cf595.netlify.app/
- laravel is hosted online at (https://adamfirsthost.000webhostapp.com)
- If you want to run React localy use "npm install" in the (client) directory to download the node_modules folder and other important files.
- If you want to run laravel localy use "composer install" in the (backend_API) directory to download the vendor folder and other important files.
- Laravel Framework: Version "7.*"
- OS: Windows 10
- PHP: Version "7.4.12", Zend Engine v3.4.0
- Database: No database required.
