Create a tiny RESTful web service with the following business requirements:
- create product (price, productType, color, size)
- calculate order price (Collection of products and quantities) (should also save Order draft somewhere)
- list all Orders
- list all Orders by productType
- type + color + size already exists
- Order is empty or total price is less than 10
- N orders / second are received from a single country (essentially we want to limit number of orders coming from a country in * a given timeframe)
Service must perform origin country resolution using a web service and store country code together with the order draft. Because network is unreliable and services tend to fail, let's agree on default country code - "US".
- You have total control over tools, as long as application is written in PHP and Laravel or Symfony framework.
- Application has to be dockerized.
- Conformance to business requirements
- Code quality, including testability
- How easy it is to run and deploy the service (don't make us install Oracle database please 😉
- Good luck and have fun!