Giter Club home page Giter Club logo

delicate-dew-5936's Introduction

Railer Coaster

This repository requires and has been tested on Ruby v3.2.2 and is based on Rails 7.0.6.

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 <repo_name>
  5. bundle install
  6. rails db:{drop,create,migrate,seed}

When you run bundle exec rspec you should have 2 passing tests.

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

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

  • AmusementParks have a name and price of admissions attributes
    • ex. name: 'Six Flags', admission_cost: 75
  • 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
  • AmusementParks have many Rides
  • Rides belong to an AmusementPark
  • Mechanics can work on many Rides
  • Rides can have many Mechanics working on them

Some of the initial migrations and model set up has been done for you.

User Stories

Story 1 - 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 are working on.
Story 2 - Add a Ride to a Mechanic

As a user,
When I go to a mechanic's 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 click Submit
I’m taken back to that mechanic's show page
And I see the name of that newly added ride on this mechanic's 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
Story 3 - Amusement Park Show page

As a visitor,
When I visit an amusement park’s show page,
Then I see the name and price of admissions for that amusement park
And I see the names of all mechanics that are working on that park's rides,
And I see that the list of mechanics is unique

Extensions

Extensions - Amusement Park's Rides

As a visitor,
When I visit an amusement park's show page,
Then I see a list of all of the park's rides,
And next to the ride name I see the average experience of the mechanics working on the ride,
And I see the list of rides is ordered by the average experience of mechanics working on the ride.
(Note: you should only perform 1 database query to retrieve the list of rides with average mechanic experience)

delicate-dew-5936's People

Contributors

cjsim89 avatar juliet-e avatar

Watchers

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