Giter Club home page Giter Club logo

order_up's Introduction

Order Up

Please follow the setup directions below. Stories for the challenge will be sent out in class.

Setup

  • Fork this repository
  • Clone down your forked repository
  • Perform the usual setup steps after cloning a Rails application:
    • bundle install
    • rake db:{drop,create,migrate}
  • You should have 5 passing tests to start

Stories

Order up is an app that tracks chefs, the dishes that they make, and the ingredients that are in those dishes. Chef's have many dishes. Dishes belong to a chef. Dishes have many Ingredients and Ingredients have many dishes. Ingredients should have name and calories.

many-many dish-ingredients

one-many chef-dish

ingredients - name:string calories:integer

Two migrations have been made for you. The one to many relationship has been set up. You will need to create migrations for the many to many relationship between ingredients and dishes. You do not need to do model testing for validations, but you do need to test any relationships and model methods that you create.

(Note: The plural of dish is dishes. The plural of chef is chefs.)

Instructions

  • Work on this challenge independently.
  • Complete the stories below
  • Commit Frequently
  • Push your code to your fork once the time is up (not before!)

Story 1 of 3 As a visitor When I visit a dish's show page I see a list of ingredients for that dish and the chef's name

Story 2 of 3 As a visitor When I visit a dish's show page I see the total calorie count for that dish.

Story 3 of 3 As a visitor When I visit a chef's show page I see the name of that chef And I see a link to view a list of all ingredients that this chef uses in their dishes When I click on that link I'm taken to a chef's ingredient index page and I can see a unique list of names of all the ingredients that this chef uses

Extension As a visitor When I visit a chef's show page I see the three most popular ingredients that the chef uses in their dishes (Popularity is based off of how many dishes use that ingredient)

order_up's People

Contributors

perryr16 avatar megstang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.