In order to run this assessment you must have Docker installed.
- Clone the repository locally
- Run
docker-compose up - Run
composer installin your container - Browse the site by going to
localhost:8080
As part of the exercise we would like for you to work through the following tasks:
- Refactor the API call out of the products controller into
Http/namespace - We have
Entity/Productthat's only used when we add a product to cart - map the products response toEntity/Productobjects at response time - Make the quantity input editable in cart, extend tests to cover
- Add validation preventing quantities being added to cart that are higher than the available quantity on the product
- Implement a new tax handler system where we can feature toggle between different logic to calculate tax. Implement 2 tax handlers, which produce different tax results (you do not need to calculate tax, only show different results based on which handler is used)