GithubHelp home page GithubHelp logo

morozd / redditjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjaminadams/redditjs

0.0 1.0 0.0 36.89 MB

Reddit built with Backbone.js

License: BSD 3-Clause "New" or "Revised" License

redditjs's Introduction

##RedditJS The code that powers redditJS.com.

I rewrote reddit from the ground up using the javascript framework Backbone and the reddit API. I feel that I've created a better user experience as well as additional features that makes for a more enjoyable experience.

#Features

  • Data Cache: Only have to load up the subreddit once. Once the subreddit is loaded, it will pull the subreddit/single post from memory. (Benefit for both Reddit's server and you! Only fetch once.)
  • Unique Views: View an entire subreddit in a new way. View thumbnails only, full images, and large grid mode. (more to come)
  • Do everything: you normally can on Reddit(*almost everything). Vote/save/hide posts. Comment, Mail, Search all without having to refresh your browser.
  • Bottom Bar: On single post views, you can see a bottom bar that contains all of the posts from that subreddit. If you don't have that subreddit in memory yet, it caches it for later use too. (Faster browsing back to that subreddit in the future). When the bottom bar is not active, it remains at only 20% visibility so you can hardly tell that it's there. I have found that navigating through reddit this way to be more enjoyable.
  • Custom CSS: Subreddit may have custom CSS and flair that goes with them, redditJS uses them!
  • Comment Links: If you hover over a link to an image or Youtube video, it becomes fullsize inside of the comment box. (Future plans to be able to add MEME text to this image right from the image)
  • Permalink Comments: If you visit a link to a permalink of a comment in Reddit it only shows that comment, I've always found this annoying. RedditJS will show that linked comment first and all of the comments from that post in the thread
  • Keyboard Navigation: Use the left and right arrow keys to navigate between posts

####RedditJS is built with :

How to run this locally

  • Clone repo git clone [email protected]:BenjaminAdams/RedditJS.git
  • In the console type npm install
  • In /public/js/loader.js you may have to change the window.production = false or else the changes you make to the source will not work.
  • Run the project and watch for live changes to the code type nodemon and you should be able to open it in http://localhost:8002/

To minify the code for production type grunt and in /public/js/loader.js change window.production = true and it will load the minified source.

Thanks

Hire me to build your next webapp

redditjs's People

Contributors

benjaminadams avatar greggb 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.