Skip to content

cory-mosey/Kanye-Quotes

Repository files navigation

Kanye Quotes - Code Test

Setup

  1. Clone this GitHub repository into your desired location.
  2. Ensure you have the minimum requirements for Laravel 11.
  3. Run composer install inside the directory.
  4. Copy the .env.example to a .env file.
  5. Remove or comment out the default DB_CONNECTION variable.
  6. Change SESSION_DRIVER to file.
  7. Change QUEUE_CONNECTION to sync.
  8. Change CACHE_STORE to file or redis.
  9. Run php artisan key:generate in the directory.
  10. Once completed, run php artisan serve to access the API through your localhost or use another service such as Apache.
  11. You can now access the API by the defined domain.

Endpoints

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/json
Authorization: Bearer {token}

Tests

Feature tests have been created for the 2 existing endpoints and can be ran using the php artisan test command.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published