Builds an new console app.
If appConfig is not passed or the serverLogger property is missing, timestamps will be enabled for logger output.
The path to the directory containing the API controllers.
OptionalappConfig: AppConfigOptional configuration for the application. If not provided, default values will be used.
OptionalautoInjectionEnabled: booleanWhether automatic dependency injection is enabled. Defaults to true if not provided.
OptionalappContainer: ContainerAn optional container for managing dependencies. If not provided, a new one will be created.
You must ensure autoInjectionEnabled reflects your IOC config if you provide an instance here.
Protected ReadonlyapiProtectedappProtectedappProtectedautoProtected Optional ReadonlycontrollersProtected ReadonlyexpressProtectedinitialisedProtected ReadonlylogProtectedloggerConfigure the API instance from the lambda-api package.
Function that takes an API instance as a parameter.
Configure the InversifyJS IOC Container instance.
Function that takes a Container instance as a parameter.
Initialise all controllers and endpoints declared using decorators.
Run using the passed event and context, ultimately should call the
processEvent method on the apiServer instance.
Request context.
The response.
Starts the express server.
Command line arguments for this server, see --help for more info.
Simple console application that hosts an express HTTP server.
A request is mapped from the HTTP request to the ApiServer event format, a ApiServer instance then processes the request. The ApiServer response is mapped to a standard HTTP response and returned to the express client.