https://github.com/opentable/menu-code-test
https://github.com/opentable/menu-code-test
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/opentable/menu-code-test
- Owner: opentable
- Created: 2018-10-16T12:33:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T11:17:25.000Z (over 7 years ago)
- Last Synced: 2025-04-09T15:02:37.531Z (over 1 year ago)
- Size: 6.84 KB
- Stars: 3
- Watchers: 124
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
OpenTable front-end coding challenge
====================================
Thank you for accepting our coding challenge. Please take as much time as required to give us a good indication of your coding strengths, as your application will provide many topics of conversation in the next interview stage.
## The task
We would like you to build a web application.
- The application will allow one user to select dishes on behalf of two diners.
- The application will present a menu that will be provided and may later require adjustment by a restaurant.
- The application will enforce some restrictions provided by the restaurant. (see [#rules](#rules))
We've prepared a simple data file which contains an example menu with prices to help get you started.
Feel free to use any scaffold for example:
- http://expressjs.com/en/starter/generator.html
- https://github.com/facebook/create-react-app
Please write as clean and maintainable code as possible, and make sure that it's covered by test cases.
## Rules
_To recap, you will build an interface that allows a user to select dishes for a fixed party of **two diners**._
This restaurant unfortunately has a number of rules about the meals that can be ordered.
- Each person must have at least two courses, one of which must be a main.
- Each diner cannot have more than one of the same course.
- There is only one piece of cheesecake left.
- Pierre the snobby waiter will not let you have prawn cocktail and salmon fillet in the same meal.
## Acceptance criteria
- The total bill amount is displayed when at least one dish has been selected.
- An error message is displayed when I try to select an invalid menu combination.
## Submission
Please submit your program either by sending a zip file or by providing a link to a repository, dropbox, etc to your point of contact at OpenTable.