A simple backend based on the Rails Getting Started Guide. It is a REST backend only, returning JSON and accepting JSON for updates/creates. Below are steps to get the code up and running, and then directions on completing the exercise by adding certain actions. It is estimated that the code exercise will take 2-4 hours, and there will be follow up questions and discussion of the submission at the subsequent technical interview.
- Clone the repository.
- From root, run
bundle install
- From root, run
rake db:migrate
- From root, run
rake db:seed
Look for TODO:
in the code for inline comments, or here is a unified list:
- Add endpoints for updating and deleting an Article in
articles_controller.rb
- Fill in the endpoint in the
articles_controller.rb
to allow an import of Articles with Comments. Seeimport.json
for an example json payload the endpoint should accept. - Add pagination and filtering to the list endpoint in
articles_controller.rb
. Should be able to filter onstatus
equaling one of the 3 statuses andtitle
orbody
containing a string. - Add tests for
articles_controller.rb
inarticles_controller_test.rb
. (please ignorecomments_controller_test.rb
)
Once complete, please respond to the email in which you received this code exercise with either a zip of all the code or a url of a fork that is publicly accessible. We will test and run the code, and followup with next steps. Thank you!