Entry point module
This is where everything begins: We instanciate a new service and start it for everyone to see :3
Methods
(static) addMiddlewares(config, service) → {Promise.<Object>}
Add middlewares to the context
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Current config |
service |
Object | Service reference |
Returns:
Mutated with middlewares
- Type
- Promise.<Object>
(static) bootstrap(config) → {Promise.<Object>}
Bootstrap the whole service
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Current configuration |
Returns:
Started service
- Type
- Promise.<Object>
(static) createService(config) → {Promise.<Object>}
Create a service exports with given context
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Current config |
Returns:
New service having models and middlewares
- Type
- Promise.<Object>
(static) start(param) → {Promise.<Void>}
The holy function at the beginning of everything E2E Tests may call the app with a custom configuration
Parameters:
| Name | Type | Description |
|---|---|---|
param |
Object | Instanciation parameters |
Returns:
Nothing
- Type
- Promise.<Void>
(static) startService(config, service) → {Promise.<Object>}
Start a service exports
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Config reference |
service |
Object | Service reference |
Returns:
Started service
- Type
- Promise.<Object>
(static) stop(service) → {Promise.<Void>}
What starts, must end at some point
Parameters:
| Name | Type | Description |
|---|---|---|
service |
Object | Service reference |
Returns:
Nothing
- Type
- Promise.<Void>