Skip to content

patriciabonaldy/sports-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sports-news 👋

This application gets data from different providers and transforms from xml into a consistent and desirable format that can consume.

It also provides stability so that, as is often the case, when the external vendor has issues, we can still provide data to the applications, even if the data is outdated.

The requirements of this project have the following:

At regular intervals poll the endpoint for new news articles ● Transform the XML feeds of news articles into appropriate model(s) and save them in the database. ● Provide two REST endpoints which return JSON: a. Retrieve a list of all articles b. Retrieve a single article by ID

Setup:

1.- Run follow command:

make setup

2.- Create a topic

make create_topics

Documentation API

"/health"       --> return health of app
"/articles"     --> return a list of articles
"/articles/:id" --> return an article

Testing

make test

👨‍💻 Full list what has been used: