- Clone project
git clone https://github.com/Seb33300/pomelo-challenge-php-laravel.git
- Install PHP dependencies
composer install
- Setup config
cp .env.example .env && php artisan key:generate
- Launch web server
php artisan serve
- Visit http://127.0.0.1:8000/
Use the OpenAPI documentation page or the REST client of your choice to try it.
POST http://127.0.0.1:8000/api/transform
Visit http://127.0.0.1:8000/github/repositories
You should be able to see search results in a table with pagination links just below.
Please note that the pagination has been made using Laravel Paginator which rely on Tailwind (by default) for the appearance. Because Tailwind is not loaded in this project, the appearance is a bit broken but previous & next buttons work as expected. You may want to inspect the source code to see all pagination buttons.
php artisan test