08-Machine Coding Round Six
08-Machine Coding Round Six
Instructions:
1. Create this application using React JS Hooks.
2. You have to make the UI as shown in the image in the question below. You can use plain CSS or
any CSS library you want.
3. You have been provided the JSON data below for this question.
4. This is a frontend assignment. No backend involved.
5. You have to host your site live and submit the live link along with Github link of your code or you
can choose to code on CodeSandbox and submit the CodeSandbox link.
6. You have to complete the below mentioned features and make your submission here on LMS
in 3.5 hrs.
7. You can use google for your coding errors and queries.
App Features:
1. List all cuisines: Show list of cuisines for users in the form of buttons. Users should be able to
easily browse through different cuisines such as Italian, Chinese, Indian and Mexican. This
feature should allow users to find restaurants that offer their selected cuisine.
2. Restaurants List: Display a list of restaurants based on the selected cuisine. Include minimal
details on the restaurant cards such as restaurant name, price, food name and image.
3. Restaurant Detail Page: Provide a dedicated page for each restaurant with detailed information.
Allow users to add reviews for that particular restaurant with the help of “Add Review” button.
Add Review button should open a popup where user can enter rating and review comment for
that restaurant. Have a close button on the review modal.
FAQs:
1. When we write a review should the average rating of the restraunt and the cuisine be affected?
2. How can we use the review and average review rating from the cuisine array?
Ans: No.
Ans: Yes.
6. After vising a restaurant page if we press back button then restaurant list should be persist?
7. Is Dishes are not clickable, Only when user will click on restaurant it will show restaurant
details?
Ans: All cards should be clickable. And on clicking, it should take to that restaurant page.
Ans: No.