An open API service indexing awesome lists of open source software.

https://github.com/wilsonkinyua/news-api

A web application where users can view the latest news from different sources. It uses the News API to fetch the news and display it on the web page. Build with Python Flask
https://github.com/wilsonkinyua/news-api

flask hot-news news newsapi python

Last synced: 12 days ago
JSON representation

A web application where users can view the latest news from different sources. It uses the News API to fetch the news and display it on the web page. Build with Python Flask

Awesome Lists containing this project

README

          

# News Api

#### Created By Wilson Kinyua Muthoni on 11-09-2021

## Description

A web application where users can view the latest news from different sources. It uses the News API to fetch the news and display it on the web page.

## Setup Requirements

- Git
- Web-browser or your choice
- Github
- Flask(1.1.2)
- Pip
- Python 3.8
- News ApiKey (https://newsapi.org/)

## Setup Installation

- Copy the github repository url
- Clone to your computer
- Open terminal and navigate to the directory of the project you just cloned to your computer
- Run the following command to start the server using virtual environment

```
python3.8 -m venv --without-pip virtual
```

- To activate the virtual environment

```
source virtual/bin/activate
```

```
curl https://bootstrap.pypa.io/get-pip.py | python
```

```
pip install --force-reinstall flask==1.1.2
```

```
chmod a+x start.sh
```

```
./start.sh
```

- open the browser and navigate to http://127.0.0.1:5000/ to see the application in action

## Technologies Used

The following languages have been used on this project:

- HTML
- CSS
- Bootstrap
- Python
- Flask
- News Api

## Setup/Installation Requirements

- Live link to view the project View News Api

## Some Screenshots

- Homepage
screenshot

- News Sources
screenshot

- Top BCC News
screenshot

- Top Al Jazeera News
screenshot

- All News depending on the source selected
screenshot

- Business News
screenshot

- Fully phone responsive


screenshot

## Known Bugs

So far so good there are no bugs related to this project 😎

## Support and contact details 🙂

To make a contribution to the code used or any suggestions you can click on the contact link and email me your suggestions.

- Email: wilson@developerwilson.com

## License

Copyright (c) 2021 Moringa school

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files , to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.