Git Product home page Git Product logo

daily_guardian's Introduction

Daily Guardian

Netlify Status

Daily Guardian is a frontend, single page app that summarises the top 10 guardian articles daily for your convenience.

More specifically, this app grabs all the top 10 headlines from the Guardian newspaper API and displays them on a page. Clicking on a headline will show a summary of the article.

This app was written entirely in frontend JavaScript, CSS and HTML.

Check it out here

How to use Daily Guardian

Firstly, if you do not have Node and npm installed. Please do the following:

Installing Node

In your terminal, run:

$ node -v

If you get a message that says node: command not found, run:

$ brew install node

npm will automatically be installed when you install node.

To run this app on your computer, complete the following steps:

  1. Fork this repository, and clone it to your local machine.
  2. In your terminal, make sure you are in the root directory 'daily_guardian' and run the command ‘npm install’
  3. When the installation completes, you may type 'open index.html' in your terminal to open the app.

User Stories

The following user stories were used to create the app.

As a busy politician
I can see all of today's headlines in one place
So I know what the big stories of the day are
As a busy politician
I can click a link to see the original news article
So that I can get an in depth understanding of a very important story
As a busy politician
I can see a summary of a news article
So I can get a few more details about an important story
As a busy politician
I can see a picture to illustrate each news article when I browse headlines
So that I have something nice to look at
As a busy politician
I can read the site comfortably on my phone
Just in case my laptop breaks

Planning

Class Responsibility Collaborator

Class Methods Instance variables Responsibility
News retrieveTopArticles() this.topStories Printer
retrieveSummaryData() this.singleArticle
this.articleSummary
this.printer
Class Methods Relationships
Printer generateTitleHTML()
generateSummaryHTML()
displayHTML()

Resources used

This app makes use of an API provided by Makers Academy that you can use to talk to the Guardian API and the Aylien text summarisation API. This API's only job is to take your request and add an API key. More information about each of these API's can be found below:

daily_guardian's People

Contributors

hiboabd avatar

Watchers

James Cloos avatar  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.