patriciabonaldy / sports-news

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About


Languages

Language:Go 96.2%Language:Makefile 2.8%Language:Dockerfile 1.0%