4.3. Build potential customer module
In this section, let’s build the features for managing potential customers. I will build this management feature as a module that includes the following components:
- Data Model: will contain everything about the data model and how we will interact with the actual data in the system. In addition, we can also define the schema to know the structure of the data.
- Function: these are the functions of the module. They will be written as separate functions so that we can easily unit test them.
- Port: when we have functions performing tasks, we can package them into larger functions so they can be used in other modules or in other runtimes.
Content
- Build the data model
- Build the functions
- Build the ports