Code Monkey home page Code Monkey logo

silent-forest-7482's Introduction

Order Up

This repository requires and has been tested on Ruby v2.5.3 and is based on Rails 5.2.4.3.

RSpec and Shoulda-Matchers have been installed and set up.

Setup

  1. fork this repo
  2. clone your fork
  3. git clone <paste_repo>
  4. cd b2-mid-mod
  5. bundle install

Instructions

  • Work on this assessment independently. DO NOT discuss with anyone.
  • You are allowed to use any references including notes, Google, lesson plans, etc.
  • Read each story carefully before you start working.
  • Commit Frequently, about every 15 - 30 minutes
  • Push your code to your fork once the time is up (not before!)

Submission

Once the time for the assessment is up, push your code to your fork and create a pull request to the turingschool-examples repository. Include the following:

  • Your Name
  • A reflection on how you felt you did with this challenge and what story you got through

Requirements

  • TDD all new work
  • model methods and relationships must be fully tested.

Not Required

  • No visual styling is required or expected
  • You do not need to test for or create any model validations.

Overview

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
  • Ingredients have many dishes
  • Ingredients should have a name and calories.

Some of the initial migrations and model set up has been done for you. After you set up your database, you should be able to run the tests and see five passing tests.

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

User Stories

User Story 1 - Chef Show Page

As a visitor
When I visit a chef's show page
Then I see the name of the chef
And I see the names and descriptions of all the chef's dishes
User Story 2 - Chef's Ingredients

As a visitor
When I visit a chef's show page
Then I see the name and calories of all ingredients this chef uses in their dishes
And I see that the list of ingredients is unique (contains no duplicate ingredients)
And I see that the list of ingredients is ordered from most calories to least calories
User Story 3 - Remove a Dish from a Chef

As a visitor
When I visit a chef's show page
Then next to each dish I see a button to remove it from this chef
When I click this button
I am returned to the chef's show page
And I no longer see the dish listed
(Note: you should not destroy the dish record entirely. Instead, you should disassociate it from the Chef)

Extensions

Extension - Chef's most popular ingredients

As a visitor
When I visit a chef's show page
I see a section for "Most Popular Ingredients"
And in that section I see the three most popular ingredients that the chef uses in their dishes
(Note: Popularity is based off of how many dishes use that ingredient)
(Note: You should only make 1 database query to calculate the most popular ingredients)

silent-forest-7482's People

Contributors

joeyh92989 avatar brianzanti 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.