-
Make sure that your Docker client is running locally
-
Open your prompt in project folder and execute below code:
docker build -t coffee-store . docker run -p 8080:8080 {image}
-
After the container run you can access the api from http://localhost:8080/
Coffee Store.postman_collection.json file contains all requests that you can use and test api.
- Product: Admin can use it for product crud operations
- Topping: Admin can use it for topping crud operations
- Cart: Customer can add / remove product and clear his/her cart
- Order: Customer can create an order from his/her cart.
- Admin: Admin can get most used toppings reports
- Product, Topping and Admin controller needs to be under authentication but it's not implemented. Those endpoints are under /api/admin path.
- Not every API response use DTO, some of them use Models. It's better to add related DTOs and mappers.
- Get methods do not have paging support. It can be added later.
- Add more Integration Tests
- Add more Unit Test