Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript Ruby CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
features
lib/tasks
public
script
spec
test
.gitignore
.rspec
Gemfile
Gemfile.lock
README.rdoc
Rakefile
config.ru

README.rdoc

ls == Welcome to SGE's interview assignment!

Getting Started

    1. Ensure you have installed MySQL (dev.mysql.com/downloads/mysql/), Ruby 1.9.3 (RVM is recommended: beginrescueend.com/), and RubyGems >= 1.5.3 (rubygems.org/pages/download)

    1. Install bundler (gem install bundler)

    1. Install cached bundled gems (bundle install –local –deployment)

    1. Create the databases (bundle exec rake db:create:all)

    1. Set up the database (bundle exec rake db:migrate)

    1. Set up the test database (bundle exec rake db:migrate RAILS_ENV=test)

If you're not familiar with using bundler, simply know that you should use bundle exec before any command line applications. For instance, starting the app server is 'bundle exec script/server', and starting a console session is 'bundle exec script/console'.

Assignment

Create a bare-bones book collection management system.

Requirements

    • Upon signing in, you see your book collection.

– If nothing is in your collection, you get a call to action to add a book.

    • Add a book

    • Delete a book

    • Edit a book

    • Basic error handling

    • Unit tests verifying each of the preceding requirements (use the test framework of your choice, e.g. rspec, cucumber)

Note: we care more about the site being usable than pretty.

Extra Credit

    • Pretty, standards-compliant markup + CSS.

  • Ajaxifying the CRUD operations.

  • Advanced error handling

– e.g., detect probable duplicates and warn

  • Spellchecking

  • A simple statistics dashboard for admin use.

    • Invite a friend to join the service.

  • – via mail

  • – via Facebook

  • Friending within the site (creating relationships between users)

– leveraging Facebook

  • See who has books in common with you

  • Upload and display profile picture

Something went wrong with that request. Please try again.