Second step in the hiring process, this project respond to MomentumTravel assesment by Jeremy Nikolic.
Full documentation here : Documentation
* Airports
* Alphabetical list of airports
* Trips
* Trips list
* Get trip info
* Create a trip
* Update a trip
* Delete a trip
-> Flights
* Get flights list
* Create a flight
* Update a flight
* Delete a flight
git clone
composer install
php artisan key:generate
php artisan migrate
Thanks to IataCode.org
You may fill and update the airports list with real data using the following command
Get yourself an API key and setup a few parameters in .env :
IATA_CODE_API_KEY=<YOUR_API_KEY_HERE>
IATA_CODE_API_VERSION=6
IATA_CODE_API_URL=http://iatacodes.org/api/
php artisan refresh_airports
Options:
--with_progression : if present displays progression infos
--limit=# : limit the number of airports to be refreshed (useful for heroku limitation of 10,000 db rows in dev mode)
Unit tests are present for the different functionnalities
This is not a finalised application, it is just an aptitude test. Use at your own risks