This repository contains a simple rails application that we use for interviews at HomeStars.
Instead of a using a generic blog or todo list type of an application we want to work on a concept that relates to HomeStars' products and can be accomplished in a interview setting.
- Clone this repository.
- To ensure everything is set up correctly, run:
bundle install
rails test
orrails spec
(depending on what you prefer minitest or rspec. Both available for you to choose.)
This app is an API for serving-up/capturing interview questions as part of homeowner submitting a Service Request
to our application. Homeowners submit a Service Request
based on a task ("Air Ducts & Vents - Clean", "Tree Trimming")
An Interview
is a completed set of responses. A response joins a question and the answer selected by the homeowner.
This app uses jsonapi-rb to serialize JSON responses. You can find an example of a simple GET endpoint in the
TasksController
, and you can find the related serializer in the app/serializable
directory.
- JSON-API is a convention for writing JSON endpoints.
- jsonapi-rb-rails is a library for serializing ActiveRecord objects and their relationships according to the JSON-API specs.