These days I figured out would be a great idea to have news on my website. So I decide to create this api to support this feature. It fetches news from Google News Section, bringing useful info about the news. Visit /docs to see how to use this api.
This project has a docker-compose.yml file to manage the container. Utilize it to run whatsoever you might need.
-
How to start: Start by running the following command. Remember you need to change ports on docker-compose if that (8001) is already taken.
app$ docker-compose up --build
-
How to test: Use the test_app.py file to test the api. After that run the command below to run the tests.
app$ docker-compose build app$ docker-compose run web pytest
*Heroku app is not not working Code H14: This is an error with Heroku that does not start the dyno when we push a container. See this to understand it better and get the fix to it.