The Sports Dashboard now displays the results of the last matchday
2024-04-14
2024-04-14
The Sports Dashboard now displays the results of the last matchday.
I've been making some updates to the Sports Dashboard to showcase the results of the latest matchday across available leagues. My aim with this project is to provide a convenient overview of major football leagues in Europe without needing to navigate through sports news websites.
To achieve this, I've implemented a new task that retrieves results data from APIFootball, processes it into the required format, and then stores it in the database. The code is designed to be adaptable to different data providers and includes a DataProviderInterface
, allowing to easy use other data providers if it is needed.
This task runs once a day, similar to the task for retrieving standings. The results are now accessible through the endpoint GET /api/sports/standings/
.
Please note that since the dashboard only displays results from the last matchday, there may be instances where the data appears incomplete if not all games have been played yet.
The code is publicly available here. Enjoy!