- Clone this GitHub repository into your desired location.
- Ensure you have the minimum requirements for Laravel 11.
- Run
composer installinside the directory. - Copy the
.env.exampleto a.envfile. - Remove or comment out the default
DB_CONNECTIONvariable. - Change
SESSION_DRIVERtofile. - Change
QUEUE_CONNECTIONtosync. - Change
CACHE_STOREtofileorredis. - Run
php artisan key:generatein the directory. - Once completed, run
php artisan serveto access the API through your localhost or use another service such as Apache. - You can now access the API by the defined domain.
| Endpoint | Description | Request Headers |
|---|---|---|
/v1/generate-token |
Generate a short-lived token in order to authenticate into the API. | Accept: application/json |
/v1/quotes |
Display a list of Kayne West quotes. | Accept: application/jsonAuthorization: Bearer {token} |
Feature tests have been created for the 2 existing endpoints and can be ran using the php artisan test command.