/csv_app

GET calls to JSON API pulled locally and exported to CSV

Primary LanguageRuby

README

  • UPDATE 9/21 - This update adds a new link (/sentences) for functionality to add a sentence and return the first non-repeating character.

  • Sentences are a scaffolded resource with a first_non_repeating_character method. Basic validation is in the Sentence model. Rspec tests exist in the spec/models/sentence_spec.rb file (limited html/css styling)

CSV App and REST Client

This application can be found at still-sands-46448.herokuapp.com/ (please allow 10 seconds for loading as it is hosted on heroku’s free dynos)

This application makes GET calls to the JSON Placeholder site and formats the results of the calls into resource pages. The resource pages (shown in the navigation bar) can all be output to CSV.

For the assignment results, please visit Combined Posts & Users and export the results to CSV.

Notes about this application:

  • The RestClient object makes calls to the JSON rest API’s and models them into Post and User objects

  • The RestClient is initialized in the Application Contoller

  • Basic tests for the RestClient are located in the spec folder

  • Bootstrap is loaded with this application, but the application is not fully mobile responsive