5.3. Build potential customer module
In this section, let’s build the features for managing potential customers. This management feature will be developed as a module including the following components:
- Data Model: contains everything about the data model and how we interact with the real data in the system. Additionally, we can define the schema to know the structure of the data.
- Function: represents the module’s functionalities. These will be written as separate functions, making them easy to unit test.
- Port: once we have the functions performing the functionalities, we can wrap them into larger functions so they can be used in other modules or in different runtimes.
Content
- Building the Data Model
- Building the Functions
- Building the Ports