Giter Site home page Giter Site logo

erastus-mwangi-njoroge / news-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.75 MB

An application that help list and preview news articles from various sources using News API key.

Home Page: https://flying-news.herokuapp.com/

Python 98.80% HTML 0.44% Shell 0.11% PowerShell 0.04% Xonsh 0.03% JavaScript 0.26% C 0.17% CSS 0.16%

news-api's Introduction

News-API

An application that help list and preview news articles from various sources using News API key.

Author

Erastus Njoroge

Description

This project is a Flask application that consumes the News API and displays real time articles from major media stations all over the world.

User Stories

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

Installation / Setup instruction

The application requires the following installations to operate

  • python3.9
  • virtualenv(name of environment)
  • pip

Set Up

  • 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

Running the Application

  • 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

Technologies Used

  • python3.8.10
  • html
  • css
  • flask
  • heroku cli

Known Bugs

  • The app may have server bugs (Error 503) that will be worked upon

Contact Information

If you have any question or contributions, please email me at [[email protected]]

License

  • MIT License:
  • Copyright (c) 2021 Erastus Njoroge

news-api's People

Contributors

erastus-mwangi-njoroge avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.