Code Monkey home page Code Monkey logo

be2_final_retake_2003's Introduction

2003 BE2 Final Assessment

Please follow the setup directions below. Stories for the assessment will be sent out at 9am on Monday.

Setup

  • Fork this repository
  • Clone down your forked repository
  • Perform the usual setup steps after cloning a Rails application:
    • bundle install
    • rake db:create

When you run bundle exec rspec , you should have 0 tests.

Seattle Grace Retake

BEM2 Final Technical Assessment Retake

Description

Seattle Grace is based off of Grey's Anatomy (Mike's favorite show), but you need NO knowledge of Grey's Anatomy to complete this final.

Hospitals have many Doctors, Doctors work for just one hospital. Doctors have many surgeries and surgeries can have many doctors.

A one to many relationship is already set up for you.

Make sure to read all instructions, tasks, and user stories before getting started. Also, take a look at your schema to see what you're working with to start.

Instructions

  • Work on this assessment independently. DO NOT discuss with anyone.
  • Fork this repository
  • Clone your fork
  • Run bundle install
  • Run rake db:{drop,create,migrate,seed}
  • Complete the tasks below
  • Push your code to your fork once the time is up (not before!)

Tasks

  1. Create a surgeries table
  • Surgeries will have a title, day of the week ("Monday", "Tuesday", "Friday", etc...), and operating_room_number
  1. Set up a many to many relationship between doctors and surgeries
  2. Complete the following user stories:
User Story 1, Creating a Surgery
As a visitor
When I visit a surgery’s index page
I see the title of all surgeries in my database
I also see a link to add a surgery
When I click that link
I’m taken to a new form to create a surgery
When I fill in the form with a title, day of the week, and operating room number
And hit submit
I am taken back to the surgeries index page where I can see this new surgery’s title listed


User Story 2 , Surgery Show Page
As a visitor
When I visit the surgery index page
I can click on any surgery title to take me to that surgery’s show page
And on the show page I see the title and operating room number of that surgery
And I see the count of doctors that are on this surgery
And I see a section of the page that says "Other surgeries happening this day of the week:"
And under that header I see titles of all surgeries that happen on the same day of the week as this surgery.
User Story 3, Add a Doctor to a Surgery
As a visitor
When I visit a surgery's show page
I see a surgery's title, date, and
I see a field with instructions to "Add A Doctor To This Surgery"
When I input a doctor's unique id into that field
And click submit
I'm taken back to that surgery's show page
And I see the name of that doctor listed on the page

be2_final_retake_2003's People

Contributors

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