The recruitment task is to write a program to represent the process of book purchasing process (retrieving book data from the API, adding and removing products from the basket, filling in the form with personal data necessary order processing).
The solution to the assignment should be placed in the front folder.
- downloading data from API after entering the application page (GET /book),
- displaying previously downloaded data in a specific format, i.e. each
book should be displayed in a specific format, i.e. each book should be represented by one block, which should contain the book's cover, title, author, number
book, its title, author, number of pages, and a button:
- `Add TO CART' which will add a specific item to the shopping cart.
- a button that will allow you to go to the shopping cart.
- displaying a list of books selected by the user,
- the
NEXT
button which will direct to the order summary stage.
- preparation of a form with fields:
- first name,
- surname,
- city,
- postal code.
- the button "I ORDER AND PAY" after pressing which the data will be sent to the endpoint POST /order.
- form validation.
- react,
- any state management library like redux.
- Tailwind or bootstrap.
- implementation in typescript
- automatic tests with possibility of generating coverage report
Documentation in OpenAPI 3 format is available by running the mock server and navigating to the address: localhost:3001/docs.
Node.js is required (Yarn is additionally recommended). The project requires installation and running the mock server API: ``bash cd api yarn yarn start