Factory
The Factory class is used to create and initialize a new server.
import { Factory } from '@archibald/server';
create
This method creates and initializes a new server.
import { Factory } from '@archibald/server';
const server = Factory.create(PARAMETERS);
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
| server | typeof CoreServer | The Server class. | |
| config | DefaultConfig | ✔️ | An object holding the project configuration. |