This document describes Charlene's Coffee Corner app. The coffee corner is a system for managing orders and printing receipts.
This document is intended to be read by people who want to get insights how the app works.
The primary scope of the component is to take an order and print a receipt.
- Java SE 8
- Apache Maven
Charlene decided to open her very own little coffee shop on a busy street corner. Being the careful entrepreneur, she decided to start off with a limited offering, with the option to expand her choice of products, as business goes.
- Coffee (small, medium, large) 2.50 CHF, 3.00 CHF, 3.50 CHF
- Bacon Roll 4.50 CHF
- Freshly squeezed orange juice (0.25l) 3.95 CHF
- Extra milk 0.30 CHF
- Foamed milk 0.50 CHF
- Special roast coffee 0.90 CHF
Charlene's idea is to attract as many regular‘s as possible to have a steady turnaround. She decides to offer a customer stamp card, where every 5th beverage is for free. If a customer orders a beverage and a snack, one of the extra's is free.
- Only beverages can have extras.
- A beverage can have only one extra.
The API is console based. Administrator provides the order in string format and also the client ID for every order.
This component persists data in memory using maps.
On startup some data are loaded regarding customers and products. #####Five customers with ID:
- C123
- C124
- C125
- C213
- C214
Role | Authentication | Comment |
---|---|---|
Anonymous | None | the app uses no authentication for communication |
Role | Authorization | Comment |
---|---|---|
Anonymous | None | the app uses no authorization for communication |
No logging provided for the app.
To run the application execute the following command.
mvn clean install
java -jar ./target/coffeeapp-1.0.jar
####Example