Skip to content

Bayonnaise/reddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit Code Climate Test Coverage

Week 9 Friday Challenge

Objectives

Build a simple Reddit clone using Rails and TDD. Include tabs for sorting the posts by the usual metrics (Hot, Top, Rising, New etc), and allow logged in users to add and rate posts. Posts can be text or a link.

Screenshot

Image1

Development status

Try the latest build on Heroku

  • Implemented Reddit ranking algorithm for the homepage
  • Users, posts, comments and votes are implemented and tested.
  • You can sort by most popular or newest posts.
  • Every user has a profile page that lists their posts and comments.
  • URLs are automatically formatted to avoid broken link posts.

Next steps

  • Finish Bootstrap styling
  • Figure out a way to test the reddit algorithm
  • Associate users with votes
  • Stop users voting on a post multiple times

Tools used

  • Ruby/Rails
  • JavaScript/Jquery
  • Bootstrap
  • Heroku
  • ActiveRecord and postgresql
  • Gems inc Devise, FactoryGirl, Poltergeist, database_cleaner

How to run tests

git clone https://github.com/Bayonnaise/reddit.git
cd reddit
bin/rake db:create db:migrate RAILS_ENV=test
rspec

About

Makers Academy week 9 challenge - build a reddit clone using Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published