Skip to content

joinpursuit/8-3-module-three-assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Three Assessment

This challenge is designed to assess the React skills you have developed so far.

There are 7 features that need to be created. Each completed feature (passes all the tests) will be worth 1 point.

A minium of 5 points must be attained in order to pass this assessmemt.

You may receive partial credit (0.5 points) for code that is close to passing the tests, but does not pass all the tests.

If you have gotten all the tests passing, you are strongly encouraged to work on the CSS/overall appearance of the app and add additional features. A nice weather app project has the potential to be something you could add to your portfolio.

Assessment Setup

Getting started

  1. Fork and clone this repository.

  2. Navigate to the cloned repository's directory on your command line. Then, run the following command:

    npm install
    

    This will install the libraries needed to run the tests.

  3. Open up the repository in VSCode. Follow the instructions below to complete the Lab.

Tests

To run the tests, you can run the following command from the command line. You will need to be in the root directory of your local directory.

npm run cypress

This will open the Cypress testing window, where you can click to run an individual suite of tests or all of the tests at once.

Testing Tips

Keep the following in mind for this lab as you run the tests.

  1. While running your tests, you must have a server up and running in another terminal. This means you will have both a terminal window running the actual React application and a terminal window running the tests.

  2. While the cypress-watch-and-reload package has been installed in this project, sometimes the React application will take longer to reload than the tests. If you feel as though a test should be passing that isn't, try pressing the re-run button in the Cypress tests before asking for help.

Instructions

Using the Studio Ghibli API, you are going to create a frontend-only application that displays information about the movies, characters, and locations created by Studio Ghibli.

Features

You will need to complete features for four different pages and create a navigation bar that is present on all pages.

Home page (/) : 1 point

  • Your home page should be accessible via the / route and include the following text:

    Welcome to GhibliApp
    

    Welcome Page

Navigation bar : 1 point

  • The navigation bar should be created using the nav element.

  • The navigation bar should include a logo of your choosing which is 50px wide and 50px high. It should be displayed in the upper-left corner of the page.

  • Clicking on the logo should return the user to the home page.

  • The navigation bar should includes links for "Movies", "People", and "Locations". Each link should go to the related route.

Movies page (/movies) select dropdown : 1 point

  • All content should be inside some element with the class .movies.

  • Has the text "Select a Movie" on the page.

  • Has a select dropdown that includes an "empty" option element followed by all of the films produced by Studio Ghibli.

    Before Select

Movies page (/movies) get movie details : 1 point

  • When a new option is selected from the dropdown, the movie's title, release date, and description should appear underneath the dropdown. At least the title of the movie should be in some kind of heading.

    After Select

  • When the "empty" option is selected yet again, the film's information should disappear.

People page : 1 point

  • All content should be inside of some element with the class .people.

  • Has the text "Search for a Person" on the page.

  • Has a form that includes a text input and a submit button. Use a button element for the submit button, not an input element.

    Pre Search

  • After typing a name into the text field and pressing submit, the relevant character's name, age, and gender should be shown on the page. Submitting the form should also clear the text field.

    Successful Search

  • If the search does not yield any results, the text "Not Found" should be displayed.

    Not found

Locations page : 1 point

  • All content should be inside of some element with the class .locations.

  • Has the text "List of Locations" on the page.

  • When arriving on the page, has a button with the text "Show Locations".

    locations hidden

  • When the "Show Locations" button is clicked, the text should be changed to "Hide Locations".

  • When the "Show Locations" button is clicked, all of the locations received from the API should be displayed. Each location should include it's name, climate, and terrain.

    Use list items to display each of these locations.

    locations showing

  • When the "Hide Locations" button is clicked, all of the locations should be hidden.

Note

  • Locations should be made up of an unordered list
  • Within each location list item should be another unordered list. The list items within this list should be
  • location name
  • location climate
  • location terrain

Sort Locations by name or climate : 1 point

  • Add a button that sorts the locations by name

  • Add a button that sorts the locations by climate

locations showing

locations showing

Additional tasks

  • Your application should have no warnings or errors from React.

  • Once you are completed with the above tasks, add styling to the application.

Learning objectives assessed

The following learning objectives will be assessed in this assessment:

  • Build functional components with JSX.
  • Create a component hierarchy, making use of multiple components in a single React application.
  • Write class components in React making use of the constructor() and render() methods.
  • Use props to customize components.
  • Build complex component architectures that pass props downwards multiple levels.
  • Set state on an individual component to modify that component’s presentation.
  • Write an event handler that modifies state on user interaction.
  • Build controlled forms that manage the state of the form.
  • Integrate API calls into your React application through componentDidMount().
  • Use React Router to create the appearance of multiple pages.
  • Use the Link element to build links to different pages on your application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published