Skip to content

Instantly share code, notes, and snippets.

@BrianZanti
Created February 22, 2021 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BrianZanti/53fa6b03b496b04ef310d5232e833575 to your computer and use it in GitHub Desktop.
Save BrianZanti/53fa6b03b496b04ef310d5232e833575 to your computer and use it in GitHub Desktop.

Railer Coaster

Overview

We are creating an application to track the maintenance of amusement park rides and mechanics working on those rides.

  • Mechanics have a name and years of experience attributes
    • ex. name: 'Kara Smith', years_experience: 11
  • Rides have a name, thrill rating, and open (boolean) attributes
    • ex. name: 'The Hurler', thrill_rating: 7, open: false
  • Mechanics can work on many Rides
  • Rides can have many Mechanics working on them

User Stories

Story 1 - Mechanic Index Page

As a user,
When I visit the mechanics index page
I see a header saying “All Mechanics”
And I see a list of all mechanic’s names and their years of experience
And I see the average years of experience across all mechanics
Story 2 - Mechanic Show Page

As a user,
When I visit a mechanic show page
I see their name, years of experience, and the names of all rides they’re working on
And I only see rides that are open
And the rides are listed by thrill rating in descending order (most thrills first)
Story 3 - Add a Ride to a Mechanic

As a user,
When I go to a mechanics show page
I see a form to add a ride to their workload
When I fill in that field with an id of an existing ride and hit submit
I’m taken back to that mechanic's show page
And I see the name of that newly added ride on this mechanics show page

Ex:
Mechanic: Kara Smith
Years of Experience: 11

Current rides they’re working on:
The Frog Hopper
Fahrenheit
The Kiss Raise

Add a ride to workload:
Ride Id: _pretend_this_is_a_textfield_
Submit

Extension

Extension - Amusement Park Show page

As a visitor,
When I visit an amusement park’s show page
I see the name and price of admissions for that amusement park
And I see the names of all the rides that are at that theme park listed in alphabetical order
And I see the average thrill rating of this amusement park’s rides
Ex: Hershey Park
   Admissions: $50.00

   Rides:
          1. Lightning Racer
          2. Storm Runner
          3. The Great Bear
   Average Thrill Rating of Rides: 7.8/10
   
Note: You may have to make new migrations for this story
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment