adamki / consuming_an_api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Schoolist

Schoolist is a sample rails-api application that parses data from a csv, stores it into a database, and serves an xml and json api.

The branches show the progression of the app:

  • parser_completed shows how to implement a parser class that will process the information from the csv.
  • counties_controller shows the api for the counties data.
  • schools_controller shows the api for the schools data. This is the final branch.

To populate the data, you need to download the csv here, and store it into the public folder.

After running your migrations, run rails runner "SchoolWeightParser.new.start".

About


Languages

Language:Ruby 80.0%Language:HTML 20.0%