vino-dk / reddit-page

A react web app for viewing reddit stories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

News stories from Reddit

Features (as inspiration from Pure React)

  • Display the number of votes
  • Functioning Upvote and Down vote controls
  • Display the number of comments
  • Sort the stories by number of upvotes
  • The title should be a real link
  • Other links do not need to be functional(share,save,hide,etc.)

Component structure

  • App (contains state, AJAX, and is parent to the other components)
    • Maybe: Navbar (Sort in StoryList !! )
    • StoryList (Renders the list of stories based on points - usually happens serverside.)
      • Story (Will include StoryTitle, TitleLink)
        • StoryTimestamp (based on data from API, Moment package to display x hours ago)
        • StoryAmountComments (props)
        • StoryPoints (stateful, controlled from the parent)
        • StoryThumbnail

Setup

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

About

A react web app for viewing reddit stories.


Languages

Language:JavaScript 49.6%Language:HTML 28.8%Language:CSS 21.6%