lucasLB7 / news-Highlight

moringa school core ip4 web appliction that displays a list of news sources from around the world

Home Page:https://news-highlights-info.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

News Highlight


Author: Jack Ogina

Description

News Highlight is a web appliction that displays a list of news sources from around the world. A user is able to click on a news source and view a list of articles from that source. Clicking on the news article will then redirect you to the news article's web page.


User Requirements

  1. Your users should be able to see various news sources and select the ones they prefer
  2. Your users should be able to see all the news articles from that news source
  3. The user should see the image description and time the news article was created.
  4. The user should also be able to click on an article and read it fully from the news source.

Features

  • List various news sources.
  • List articles from the selected news source
  • Redirect user to the actual article
  • Categorize news sources
  • Use flask sessions to save a users article snippet
  • Use browser cookies to store favourite news sources

Installation

Requirements

This project was created on a debian linux platform but should work on other unix based[not limited to] sytems.

  • Tested on Debian Linux
  • Python 3.6.4

Cloning the repository

git clone https://github.com/jakhax/news-Highlight.git && cd news-Highlight

Creating a virtual environment

sudo apt-get install python3.6-venv
python3.6 -m venv virtual
source virtual/bin/activate

Installing dependencies

pip3 install -r requirements

The following libraries are required

  • Flask==0.12.2
  • Flask-Bootstrap==3.3.7.1
  • Flask-Script==2.0.6
  • gunicorn==19.7.1

Running Tests

python3 manage.py test

Running the web app in development

python3 manage.py server

Open the app on your browser, by default on 127.0.0.1:5000.

Live Demo

The web app can be accessed from the following link https://news-highlights-info.herokuapp.com/

Quickstart

usage: manage.py [-?] {server,test,shell,runserver} ...

positional arguments:
  {server,test,shell,runserver}
    server              Runs the Flask development server i.e. app.run()
    test                Run the unit tests.
    shell               Runs a Python shell inside Flask application context.
    runserver           Runs the Flask development server i.e. app.run()

optional arguments:
  -?, --help            show this help message and exit

Technology used

Contributing

License (MIT License)

This project is licensed under the MIT Open Source license, (c) Jack ogina

About

moringa school core ip4 web appliction that displays a list of news sources from around the world

https://news-highlights-info.herokuapp.com/

License:MIT License


Languages

Language:HTML 38.0%Language:Python 33.9%Language:CSS 28.1%