Skip to content

learn-academy-2023-foxtrot/preparedness-assessment-SunkissedQueen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

⭐️ Preparedness Assessment

The goal of this assessment is to provide you a platform to explore concepts that will be covered in your preparedness interviews. The assessment doesn't have a due date and will not be submitted to the instruction team. Completion of the assessment is not required. Like all things at LEARN, you will get out of this assessment what you choose to put in.

There are two portions of the assessment: frontend and backend. The frontend is a React application called preparedness-frontend that is nested in this repository. The backend portion is using data visualization tool to explore relationships between database models.

Frontend Assessment

The frontend assessment is a React application with some basic code to define a structure of the application.

  • cd into the preparedness-frontend directory
  • Install the dependencies by running yarn
  • Reactstrap Modal

Frontend Functionality Acceptance Criteria

  • The application has a title of Preparedness Assessment
  • The application has an input field
  • The input field has a label that says Enter your name
  • Below the input field there are two buttons
  • The first button says Click Me
  • The second button says Reset
  • The user can enter their name in the input field
  • When the Click Me button is selected a modal appears

  • The modal has a header that greets the user with their name
  • The modal has a body with lorem ipsum filler text
  • The modal has a close button
  • The close button in modal closes the modal

  • The Reset button clears the input field

Frontend Styling Acceptance Criteria

  • The background is this image
  • The header text color is white and is 50px
  • The header is centered on the page
  • The input label text color is white and is 35px
  • The input label is centered on the page
  • The input field text is 18px
  • The input field should take up 50% of the width of the page
  • The input field is centered on the page
  • There is 12px of padding on the left and the right of the input field
  • There is 6px of padding on the top and the bottom of the input field
  • The buttons are centered under the input field
  • The background color of the buttons are #0dcaf0
  • The color of the text on the buttons is white
  • Button width is set to 100px
  • There is 10px of padding on all sides of the button
  • There is 20px between the two buttons
  • There is 20px between the bottom of the input and the top of the buttons

Backend Assessment

Prompt: What is the relationship between a model called person, a model called house, and a model called car? (Hint: there is more than one right answer!)

  • Go to dbdiagram and create a free personal account
  • Start a new diagram
  • Enter the following code into the left side bar to create the base structure for three models
  • A free account will allow you to create 10 diagrams so explore different options
Table person {
  id integer
  created_at timestamp
  updated_at timestamp
}

Table car {
  id integer
  created_at timestamp
  updated_at timestamp
}

Table house {
  id integer
  created_at timestamp
  updated_at timestamp
}
  • Add foreign keys to create relationships between models
  • Use the following example from the syllabus section for creating relationships between a model called owner and a model called credit_card
  • The foreign key and the ref will create a visual connection between models
Table owner {
  id integer
  created_at timestamp
  updated_at timestamp
}

Table credit_cards {
  id integer
  owner_id integer [ref: > owner.id]
  created_at timestamp
  updated_at timestamp
}

About

preparedness-assessment-SunkissedQueen created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published