dcadyjr / sinatra-hw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homework: Put a Server in your pipe and smoke it

  1. It is time to build the a server of your choice!
  2. Create a brand new, small Sinatra app.
  3. Inside of your app.rb, you need to create a few routes...
  • Five routes mapped to the names of your object - ie /soccer and /football
  • These five different routes should return a hash turned JSON
  • Five routes mapped to the names of your object - ie /soccer and /football
  • These five different routes should return an erb file rendering that object
  1. Test and verify these routes in the browser.
  2. Create a front-end, single page application to display the data from your JSON API using ajax and jQuery.

About


Languages

Language:Ruby 65.9%Language:HTML 24.5%Language:JavaScript 9.5%