GithubHelp home page GithubHelp logo

the_final_rose's Introduction

The Final Rose

This Rails application is intended to be used as a practice challenge for Mod 2.

The Final Rose is an application that displays past Bachelorette's, their contestants, and the outings (dates) that the contestants went on while on the show. Bachelorettes have many contestants, contestants belong to a bachelorette (that feels not great to type), contestants can have many outings that they go on and an outing can have more than one contestant on it (this is a real thing that happens on the show). Before getting started, think about what this relationship will look like between Bachelors, Contestants, and Outings.

Be sure to read all user stories BEFORE beginning your work


Setup

  • Clone this repository onto your local computer
  • Perform the usual setup steps after cloning a Rails application:
    • bundle install
    • bundle update
    • rake db:{drop,create,migrate,seed}

Requirements

  • TDD all new work; any model METHODS you write must be fully tested.

Not Required

  • No visual stylins is required or expected

Before Starting User Stories

  • This challenge uses a one-to-many and a many-to-many relationship. Your one-to-many is already set up for you. You will need to create the many-to-many relationship (and be sure to test it all).
  • You will have 2 passing model tests to start.

User Stories

User Story 1 of 6

As a visitor,
When I visit '/bachelorettes/:id',
I see that bachelorette's:
-Name
-Season Number
-Description of Season that they were on
(e.g.             
                  Hannah Brown
    Season 15 - The Most Dramatic Season Yet!
  )
I also see a link to see that bachelorette's contestants
When I click on that link
I'm taken to "/bachelorettes/:bachelorette_id/contestants"
and I can see only that bachelorette's contestants
User Story 2 of 6

As a visitor,
When I visit a bachelorette's contestants index '/bachelorettes/:bachelorette_id/contestants',
I see the names of that bachelorette's contestants along with the following information:
-Age
-Hometown
(e.g. "Name: Pilot Pete, Age: 34, Hometown: Irving, TX")
And I can click on any contestants name (as a link) to go to that contestants show page "/contestants/:id"
User Story 3 of 6

As a visitor,
When I visit a contestants show page,
I see that contestants name as well as the season number and season description that this contestant was on.
I also see a list of names of the outings that this contestant has been on while on the show.
(e.g.
                        Ben Higgins
Season 20 - No wait, THIS is the most dramatic season yet

Outings: Kickball
        Hot Springs
        Helicopter Ride
)
When I click on an outing name, I'm taken to that outings show page
User Story 4 of 6
As a visitor,
When I visit an outings show pages,
I see that outings name, location, and date
And I see a total count of contestants that were on this outing
And I see a list of all names of the contestants that went on this outing

(e.g.       Helicopter Ride
            Location: Bali
            Date: 09/12/19
          Count of Contestants: 3
Contestants: JoJo Fletcher, Kaitlyn Bristowe, Hannah Brown)
User Story 5 of 6

As a visitor,
When I visit a bachelorette show page
I see the average age of all of that bachelorette's contestants

(e.g. "Average Age of Contestants: 29.5")
User Story 6 of 6

As a visitor,
When I visit a bachelorette's contestants index '/bachelorettes/:bachelorette_id/contestants',

I see a UNIQUE list of all of the hometowns that these contestants are from.

(e.g. "These Contestants are from these hometowns: Denver, Aurora, San Diego, Boston")

the_final_rose's People

Contributors

megstang avatar

Watchers

 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.