Skip to content

juanenmellare/news-hub-microservices_news-proxy-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Hub (microservices version) - News Proxy API

A simple API for use as a proxy for Argentine news channels.


Requirements

  • Python 3.x
  • pip

Setup (Suggested)


Run Application

Start running the app locally with the following command uvicorn main:app --reload. If the application setup is ok you should see the following message and the application listening on 8000 port.

news-hub-microservices_news-collector-api $uvicorn main:app --reload
INFO:     Will watch for changes in these directories: ['/Users/juanen/tesina/news-hub-microservices_news-collector-api']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [14786] using WatchFiles
INFO:     Started server process [14788]
INFO:     Waiting for application startup.
INFO:     Application startup complete.

Run Tests

Run all tests, with the following command:

pytest

Run all tests with code coverage + report, with the following command:

coverage run -m pytest && coverage html && open htmlcov/index.html

About

A simple API for use as a proxy for Argentine news channels.

Topics

Resources

Stars

Watchers

Forks