Giter Club home page Giter Club logo

mauracode's Introduction

Code Exercise

The wellist coding exercise for applicants

Background / User Need

At Wellist, we match patients and their families to supportive services in various categories.

The users are able to view these recommendations, category by category, and are then able to "save" and "remove" vendors from their "Support Plan." This plan can also be made public, with the user able to hide certain services from public view, should they choose.

Goal

The goal of this exercise is to have you demonstrate a few software choices while making the failing specs in this project work. This goal is in service of our overarching goal of having as fair an evaluation of your skills as possible, in order to make the best possible hiring decision.

The api endpoint at the heart of this exercise is the endpoint which is used to "save," "remove", and "hide" the vendors mentioned above.

One of the challenges of the exercise is that the desired api interface doesn't cleanly fit the controller base class.

In this exercise, you are free to change any and all files, including tests, in order to provide whatever you think is the best implementation of the user need. Use the base class, don't use the base class, change the base class, change the api spec, all options are on the table. Answer the customer need as best you can.

We look forward to discussing your solution with you!

Getting Started

If you don't have a working Ruby on Rails development environment with Postgres 9.5 installed, we recommend using Vagrant to get up and running.

Step 1: Download and install Vagrant

You can get it from the Vagrant download page. You also need VirtualBox if you don't already have it.

Step 2: Start the box

vagrant up

This will take several minutes to provision the machine the first time you run it.

Step 3: Run the tests

You can use vagrant ssh to connect to the vagrant box. Once you do the code will be mounted at /vagrant. So, you should now be able to run the tests with

cd /vagrant
rake

Please feel free to reach out if you have trouble getting to a state where rake gives you the following output:

13 examples, 12 failures

Failed examples:

rspec ./spec/models/user_spec.rb:2 # User should have one :wellist
rspec ./spec/models/user_spec.rb:3 # User should have many :wellist_vendors
rspec ./spec/models/vendor_spec.rb:2 # Vendor should have many :wellists
rspec ./spec/models/vendor_spec.rb:3 # Vendor should have many :wellist_users
rspec ./spec/controllers/api/wellist_controller_spec.rb:37 # Api::WellistController DELETE #destroy removes a vendor from the wellist when called with user id and vendor id
rspec ./spec/controllers/api/wellist_controller_spec.rb:49 # Api::WellistController DELETE #destroy removes multiple vendors
rspec ./spec/controllers/api/wellist_controller_spec.rb:63 # Api::WellistController GET #show shows a users wellist, with vendors inline
rspec ./spec/controllers/api/wellist_controller_spec.rb:18 # Api::WellistController PUT #update adds multiple vendors to the wellist
rspec ./spec/controllers/api/wellist_controller_spec.rb:27 # Api::WellistController PUT #update allows us to hide vendors from the wellistry
rspec ./spec/controllers/api/wellist_controller_spec.rb:9 # Api::WellistController PUT #update adds a vendor to the wellist
rspec ./spec/models/wellist_spec.rb:2 # Wellist 
rspec ./spec/models/wellist_spec.rb:3 # Wellist 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.