News Aggregator boilerplate built for Reddit and NewsAPI, using (Python, FastApi, PyTest, MySQL)
Boilerplate news aggregation application build for Reddit and NewsAPI. Main idea is to use lightweight development frameworks like FastAPI rather than heavy weight lifting with Django/ Flask. Further information can be found in Problem Statement document.
Request Demo
·
Report Bug
·
Request Feature
The application is built in accordance with Problem Statement document. All of the features are implemented. All the contraints are implemented, along with project documentation and unit-tests.
Current version of this project does not implement cache server or job queue to minimize performance dependence on external APIs.
Every Request to API should be async; put the request in job tracker, get results and push back responses
api.route(‘/news’)
def get_top_news():
api.route(‘/news?query=bitcoin’)
def get_search_results():
src/external_api/
src/external_api/sample_api.py
as referencesrc/api_helper.py
To run this project, should install project dependencies:
git clone https://github.com/umairqadir97/news-aggregator-with-fastapi.git
Open terminal in project folder
cd news-aggregator-with-fastapi
Install python packages
pip3 install -r requirements.txt
Create your configurations file src/config.py
.
Take src/sample_config.py
as example
Run server
python3 api.py
pytest
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b amazing_features
)git commit -m 'Add some Amazing Features'
)git push origin amazing_features
)Distributed under the MIT License. See LICENSE
for more information.
Muhammad Umair Qadir - umairqadir97@gmail.com">Email
LinkedIn: LinkedIn