Simple trip and flight booking api using sample data on Laravel 8.x framework.
Version: PHP 7.3 + MySql 5.x Composer 2.x Laravel 8.x
Mack or linux user with Docker:
-
signup and install docker[https://hub.docker.com/search?offering=community&operating_system=mac&type=edition]
-
Run
https://github.com/diderca/laravel_flightsearch_api_core.git
cd laravel_api_core/laravel-app-core
./vendor/bin/sail up Windows User:
-
Download and install Laragon [https://github.com/leokhoa/laragon/releases/download/5.0.0/laragon-wamp.exe]
-
Create database locally called:
laravel-app-core -
run
cd C:\laragon\www
https://github.com/diderca/laravel_flightsearch_api_core.git
cd laravel_api_core\laravel-app-core
composer update
php artisan migrete:fresh --seed
php artisan key:generateRun the server :
php artisan serve
Starting Laravel development server: http://127.0.0.1:8000
Api Documentation : http://127.0.0.1:8000/documentation Api link : http://127.0.0.1:8000 Routers: // Airlines[http://127.0.0.1:8000/api/v1/airlines]
// Airports[http://127.0.0.1:8000/api/v1/airports]
// Flights[http://127.0.0.1:8000/api/v1/flights] // Trips[http://127.0.0.1:8000/api/v1/trips] // AddFlight [http://127.0.0.1:8000/api/v1/AddFlight] // RemoveFlight[http://127.0.0.1:8000/api/v1/RemoveFlight]
// Search Flight for a trip // SearchTripFlight [http://127.0.0.1:8000/api/v1/SearchTripFlight]
