The app isn't finished yet but here is a sum up of what has been done so far, check the Deployed App here!.
- Use
React
(Available) - Use ES6 + (Available)
- Write Unit Tests (any testing library, but preferred
jest
) (Available)
- Some CSS just for better visuals
- Users select Meal Category (breakfast, lunch or dinner).
- They also need to input number of people (maximum 10)
Both of these should be required field.
- Users select appropriate restaurants that provides meals based on selection in first step.
This is also a required field.
-
User selects dishes they want to pre order based on the meal and restaurant they selected in first two steps.
-
They first choose a dish
-
They can also add number of servings of the dish (defaulted to 1)
On the final step, users should be able to review all their previous choices and click submit.
- User can't proceed to next step unless they have valid inputs on the current step (yes in Step 1, 2).
- if their inputs are not valid, show appropriate validation errors (yes in Step 1, 2).
- At any step user can go back and change their preference on any previous step.
The total number of dishes (i.e Number of dishes * respective serving) should be greater or equal to the number of person selected in first step and a maximum of 10 is allowed.
- User can't proceed to next step unless they have valid inputs on the current step (in Step 3).
- if their inputs are not valid, show appropriate validation errors (in Step 3).