Once FakerNet is installed, how do we utilize the framework to get our servers built? First, we need to take a quick look at how the framework is glued together.
Modules and Functions¶
Service and server building, configuration, and removal functionality is built into modules. Every module exposes a series of functions that perform a certain, single task, such as:
Creating a server
Adding a DNS record
Stopping a server
This modular structure allows modules to call other modules and so forth so that functionality isn’t reimplemented constantly, while being accessible and flexible. In FakerNet, this combination of function and module is referred to usually through the form:
Modules and their functions can be run through two main ways:
Locally: The functions are directly called locally, no server is involved. Good for smaller setups and testing.
A REST API server: The functions are called through a REST API server, usually running as a service. Good for more permanent setups and remote systems.
To access either of these methods is most commonly through the FakerNet console. See CLI Usage. (You could also call the REST API directly)