Applying modules to the correct architecture layers
In order to define our modules in the correct layers, we must know their purpose at the time we create them. For this, they can be categorized in different ways and depending on the layer they belong to.
Foundation layer
In this layer, we can have specific types of modules to support our applications; that is, they are like the foundations of a house. They serve to ensure that foundations are present, well organized, and reusable wherever they are needed.
Library modules
Library modules are business-agnostic modules that are a perfect match for the foundation layer, as they are intended to support non-functional or foundation functionalities of our applications, like the foundations of a house.
These modules can support the following types of artifacts:
- UI Flow: Group of screens or blocks
- Blocks: Set of sections for reuse on screens
- Images:
jpg
,jpeg
,bmp
,png
, ordiff
files - Themes: CSS file abstractions...