Package diagram of coffee maker (Lee Chee Hooi) - smashita/CoffeeMaker-2019 GitHub Wiki

packagediagram341

In the package diagram of Coffee Maker, it contains 3 layer which is View Layer, Domain Layer and Data Access Layer. As shown in the diagram, it has Recipe, Inventory and Purchase of the items. If user wants to access the recipe, he needs to read the RecipeList and the controller will then make a request to the Recipe domain and retrieved the data of the Recipe from the database through Data Access Layer. The same for the Inventory and Purchase of the items that must follow the layers of the package diagram.