To run:
yarn install
yarn start
Website runs at http://localhost:7000
The goal of this exercise is to allow a user to book a simple order from an order entry screen. The basic requirements are:
- When the user clicks the
Book
button, the screen transitions to showBooking In Progress
. - If the booking succeeds, show a
Booking Success
message. - If the booking fails, show a
Booking Failed
message, along with the error message.
- The codebase here is potentially something that a junior / less experienced developer may have worked on.
- Refactoring is welcome - we will talk through any refactoring that you have made as part of reviewing the solution to the exercise.
- The codebase is Typescript and React. Jest is used for tests.
- State management is handled using a custom solution - there is no need to introduce redux or any other library as part of the solution.
- The backend is stubbed out - there is no need to extend the stub service / implement a real backend
- No modifications to the current list of dependencies in
package.json
are permitted.