showroom

Created: 2012-03-22 11:09
Updated: 2013-10-28 11:01

README.md

Mission Possible: Do something

Requirements (without coloscouping)

Also, please keep in mind: We've intentionally made requirements fairly vague to give you freedom of interpretation / coming back. to us with some follow up questions. You can also look at current Shoedazzle.com web site for some clarifications. However, whatever you will build doesn't have to resemble current site.

Test assignment

Build an application that has

  • users
  • users have roles and can be segregated into two groups - regular users and admins
  • every regular user has showroom with products
  • every regular user gets new showroom every month
  • new showrooms are being populated with products by rake task
  • every showroom has 10 products
  • admins can list, edit, create, and delete products
  • every product has name, description, image, and price
  • all users can access their showrooms after login

You can use

  • any version of ruby and rails
  • any gems
  • application should have 95-100% test coverage
  • application should run on Linux and MacOS
  • application should have bootstrap data
  • application should have installation instructions

Please do not spend on implementation more than 2-3 days and do not spend your time on nice UI.

We're not looking for particular implementation, so please use your own judgement to build the system. However, all your decisions will be evaluated by reviewers.

Installation

  • Install rvm (http://beginrescueend.com/), git (http://git-scm.com/). Next do this in Terminal:

     $ rvm install ruby-1.9.3-p125
     $ git clone git://github.com/railsware/shoedazzle.git
     $ cd shoedazzle
     $ gem install bundler
     Make sure you have ImageMagick installed. If not please run the following command to install it:
       * for ports
         $ port install imagemagick
       * for HomeBrew
         $ brew install imagemagick
     $ bundle
     $ rake db:migrate
     $ rake db:seed
     $ rails s
    
  • Visit url http://localhost:3000/ in browser

  • To get access to admin area you should sign in with the following credentials: Login: admin1@test.com Password: secure

  • To add crontab jobs:

     $ whenever --update-crontab
    
  • Task for updating showrooms, which have created at 1 month ago:

     $ rake showroom:update
    

Tests

Start testing:

$ rake

Tests coverage:

$ open coverage/index.html
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more