import { BootMixin } from '@loopback/boot' ; import { ApplicationConfig } from '@loopback/core' ; import { MetricsComponent } from '@loopback/metrics' ; import { RestApplication } from '@loopback/rest' ; export class GreetingApplication extends BootMixin ( RestApplication ) { constructor ( config = { } ) { super ( config ) ; this . projectRoot = __dirname ; this . component ( MetricsComponent ) ; } async main ( ) { await this . boot ( ) ; await this . start ( ) ; } }