Skip to content

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

Notifications You must be signed in to change notification settings

WilsonKinyua/news-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Technologies Used

The following languages have been used on this project:

  • HTML
  • CSS
  • Bootstrap
  • Python
  • Flask
  • News Api

Setup/Installation Requirements

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.

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published