Backend #
Available since 2.8.0
The Backend class is the entry point of a Kuzzle application.
It must be instantiated in order to create a new application.
It gives access to the different features of the framework through its properties.
Constructor #
new Backend(name)| Arguments | Type | Description |
|---|---|---|
name | string | Application name |
The constructor also:
- sets the global variable
appto this instance, - defines the read-only global variable
nodeId, holding the generated cluster node identifier.
Errors #
- plugin.assert.invalid_application_name: the name is not a valid application name (lowercase letters, digits and dashes only)