Coder Social home page Coder Social logo

beatobongco / reddaily Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 87 KB

A simple aggregator that gives you your daily dose of reddit with less of the distraction!

Home Page: https://beatobongco.com/reddaily/

License: MIT License

HTML 30.70% CSS 41.47% JavaScript 27.82%

reddaily's Introduction

image

https://beatobongco.com/reddaily/

A simple, responsive, and completely client-side aggregator that gives you your daily dose of reddit with less of the distraction! reddaily goes to all your favorite subreddits, gets the highest scoring posts, and displays them by category so its easy to digest.

Desktop view

image

Mobile view

image

Customizing

To roll your own reddaily, simply edit the settings.js file. The first two settings are self-explanatory

var subredditMax = 3 // how many posts to pull per subreddit from top scoring
var showLimit = 5 // how many posts to show at first and how many to add for each "read more" click

Create your categories by changing the categories variable.

var categories = ["tech", "design", "sports", "trivia"]

Edit the db variable with your chosen categories. Each entry must conform to this structure:

<category_name>: {
  subreddits: [<subreddit_1>, <subreddit_2>, ...],
  posts: [],
  showLimit: showLimit
}

Example:

var db = {
  tech: {
    subreddits: ["programming", "futurology", "tech", "linux", "learnprogramming", "python", "javascript"],
    posts: [],
    showLimit: 5
  },
  design: {
    subreddits: ["design", "graphic_design", "web_design", "webdesignnews", "UserExperience", "DataIsBeautiful", "typography"],
    posts: [],
    showLimit: 5
  },
  sports: {
    subreddits: ["climbing", "bouldering", "climbingvids", "climbharder"],
    posts: [],
    showLimit: 5
  },
  trivia: {
    subreddits: ["interestingasfuck", "IAmA", "explainlikeimfive", "books", "askhistorians", "LifeProTips", "lifehacks", "YouShouldKnow", "TrueReddit"],
    posts: [],
    showLimit: 5
  }
}

Finally, fine tune your column layout by editing the index.less file and compiling it to css (I just run autoless while developing).

@numcolumns: 4

That's it, you should be good to go! Just open up index.html on your favorite browser. Hope you enjoy your reddaily experience. :)

License

reddaily is licensed under the MIT license. (http://opensource.org/licenses/MIT)

Contributing

Just hit me up with a PR! :)

reddaily's People

Contributors

beatobongco avatar

Stargazers

Mark Steve Samson avatar

Watchers

James Cloos avatar

reddaily's Issues

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.