Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 962 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 962 Bytes

Articles

Web application to display Wikipedia articles by selected category, ordered by readability score. It uses 'davechild/textstatistics' to generate a readability score.

TODOS

  • Add unit tests
  • Extract main logic, consuming API and generating readability score, from the home action into separate component(s) and inject as dependencies.
  • Handle errors that could happend consuming the API. Ex: 500.
  • Externalize values to configuration. Ex: API URLs.
  • Validate user input.
  • Sanitize user input.
  • Add style and format to the HTML.
  • Create links to Wikipedia for the items in the articles list.
  • Display message when error or no articles for category.

Install

Prerequisites

  • Docker and docker compose.
  • Internet access.

composer install

Run

docker-compose up

Go to (http://localhost:8002/)

Run tests

composer test