Skip to content

ayahatheel/fried-chicken-restaurant-ayahatheel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fried Chicken Guide Web App

Dear students,

Use your React Js Skills to build an app that can find the best Fried Chicken Restaurant in Baghdad

Task Instructions

Please follow the steps below to complete the task:

  1. Create a RestaurantList component representing a page that displays a list of fried chicken restaurants. Consider adding data-testid='restaurants-list' to the container element div of the restaurant list for testing purposes.

  2. Design a RestaurantCard component to showcase each restaurant's information. Include details like name, location, and a rating system (1-5 stars). Make sure to add these props attributes to target specific elements within the card for testing:

    1. data-testid='restaurant-name' for the restaurant name element.
    2. data-testid='restaurant-location' for the restaurant location element.
    3. data-testid='restaurant-rating' for the rating element.
  3. Build a RestaurantForm component with an input field for users to add new restaurants to the list. Clicking an "Add" button should seamlessly add the new restaurant. Include these data-testid attributes for testing:

    1. data-testid='restaurant-name-input' for the name input field.
    2. data-testid='restaurant-location-input' for the location input field.
    3. data-testid='range-input' for the rating input field (assuming it's a range input).
  4. Add a "Delete" button beside each restaurant card. This allows users to remove unwanted restaurants from the list.

  5. Add a "Change Rate" button next to each restaurant card, allowing users to modify the rating.

  6. When a user clicks on a specific restaurant card, the app should navigate to a dedicated RestaurantDetails component. This component will display detailed information about the chosen restaurant.

Rules

  1. Use state and props.
  2. Use es6 methods.

Extra Points

  1. Make the web app gives the user a fried chicken restaurant vibe.
  2. Make it responsive.

Please feel free to reach out if you have any questions or need further assistance.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.3%
  • HTML 13.8%
  • CSS 2.9%