jcentino / restaurant-menu-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What's this?

This is the backend to the restaurant app.

Which resources display?

  1. Categories
  2. Menu Items

URL patterns

  1. Show me all categories (http://<host>/categories.json)
  2. Show me all menu items (http://<host>/menu_items.json)
  3. Show me all menu items for a specific category together with info about that category (http://<host>/menu_items.json?category=<category>)

Deployed at Heroku

Deploying the app locally

  1. Make sure you have Ruby on Rails 4.2.3+ installed. (Do you need a Ruby on Rails introduction? You can find one here.)
  2. Clone this repo from Github
  3. bundle --without production
  4. rake db:migrate
  5. rake db:seed
  6. rails server

You should now be able to access the following URLs locally:

  1. http://localhost:3000/categories.json
  2. http://localhost:3000/menu_items.json
  3. http://localhost:3000/menu_items.json?category=B

About


Languages

Language:Ruby 63.5%Language:HTML 27.9%Language:CSS 5.6%Language:JavaScript 1.8%Language:CoffeeScript 1.1%