An application that help list and preview news articles from various sources using News API key.
This project is a Flask application that consumes the News API and displays real time articles from major media stations all over the world.
You will be able to see:
- news sources
- Select any article
- Select the top news articles from that various article sites
- Click on an article and read it fully from the news source
- python3.9
- virtualenv(name of environment)
- pip
-
Open Terminal {Ctrl+Alt+T}
-
git clone
https://github.com/indomitable-core/News-API
-
cd into the news_article folder/preferred folder
-
create a virtual environment using the command
$ virtualenv venv
-
enter the virtual environment by typing
source venv\bin\activate
-
install all dependencies using
pip install -r requirements.txt
-
create an instance/config.py file
-
assign your news api key to the variable ARTICLE_API_KEY
-
To run the application, open the cloned file in terminal and run the following commands:
$ chmod +x run.py $ ./run.py
-
To run tests for the application $ python3 article_test.py $ python3 source_test.py
- python3.8.10
- html
- css
- flask
- heroku cli
- The app may have server bugs (Error 503) that will be worked upon
If you have any question or contributions, please email me at [[email protected]]
- MIT License:
- Copyright (c) 2021 Erastus Njoroge