BeRecruited-rails-starter is a project mainly written in RUBY and JAVASCRIPT, it's free.
Skeleton Ruby on Rails project for beRecruited challenge
A simple rails project for beRecruited interviews.
Summary: Users of an application participate in contests put on by their favorite teams to accrue points. Top 5 users each week are given prizes. Given an external API (http://br-interview-api.heroku.com) that returns data of these users and teams, display leaderboards for specific teams of the top 5 users who have that team as a favorite.
The leaderboard should display the users' names, their current week points, and last week points. Allow toggling between different team leaderboards.
Utilize the API to gain access to the data you will be using. You can use the data in various different ways, including pre-populating your database, or on demand when needed. If pre-populating, you can assume that the data will be static for the lifetime of the project, so you don't need to update this data. Please include the code for pre-populating your database.
Details:
rails s
if Rails 3.x, or ruby script/server
in Rails 2.x). Document any initial rake tasks or other scripts to be ran in the README.Bonus points:
API Information: Here is the general information you'll need to retrieve information from the API. This is sample data that you should use to complete the app. The data may have more than you'll need for the project. There are three 'GET' calls:
GET 'http://br-interview-api.heroku.com/users' Returns a JSON string containing users. There will be more information than you'll need, so parse accordingly.
GET 'http://br-interview-api.heroku.com/teams' Returns a JSON string containing teams. "nick" is the equivalent of the nickname. "address" will be the location. There is a possibility that the address is unavailable.
GET 'http://br-interview-api.heroku.com/favorites' Returns a JSON string containing details between the relationships between users and teams. This will help you determine the points. There are current_points and last_week_points named accordingly. Assume current_points is for this week.