/RedditForThePictures

Using Node.js, Node.io, Express, Mongoose, EJS, and jQuery+Masonry to display Reddit front page or subreddits as an irregular grid of pictures.

Primary LanguageJavaScript

RedditForThePictures

Using Node.js, Node.io, Express, Mongoose, EJS, and jQuery+Masonry to display images from the Reddit front page or subreddits as an irregular grid of pictures. Using Node.io to scrape the data (yes, I know Reddit has an API) and MongoDB to store the link data.

This was written in a few hours to play with some new node modules.

Install

Clone the repo

npm install (to get the dependencies)

Run

Fire it up by running node app.js

Proceed to http://yourhost:3000/ or http://yourhost:3000/r/nameOfSubreddit for a given subreddit. Add ?output=json to instead return json output. Supports jsonp as well.

Demo

http://pure-hamlet-9600.herokuapp.com