1. Computing
Michael Morin

Creating a Reddit Clone in Ruby on Rails: Part 1

By November 29, 2012

Follow me on:

Reddit.  If you're a redditor, then you know what I'm talking about.  If not, Reddit can be most simply summed up as a social news site.  You submit links, and people vote on them.  If your links is voted on enough, it rises to the top of the page, to be seen by Reddits millions of users.  Reddit is also broken up into many smaller communities called "subreddits," so more focused content (such as content for a specific game, for electrical engineers, for photographers, etc) gets seen by more interested users.

This tutorial is going to make a simple Reddit clone in Ruby on Rails.  This is not all that difficult, at its core Reddit is not very complex.  It's really just a list of links that you can submit to and vote on.  So, even thought it's a huge site with millions of users, we're going to clone it in just a few articles.

In this the first part, we're going to get set up for the rest of the tutorial.  We need to generate a new Rails project, we'll get git set up, we'll take a look at the branch-merge workflow for Git and we'll generate our first model, an utterly blank User model that we'll need until we generate real users using Devise.

No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.