import { ApplicationRegistry , ConfigurationService } from "@triptyk/nfw-core" ; import "reflect-metadata" ; import { container } from "tsyringe" ; import { Application } from "./api/application" ; module . exports = ( async ( ) => { const app = await ApplicationRegistry . registerApplication ( Application ) ; await app . listen ( container . resolve < ConfigurationService > ( ConfigurationService ) . getKey ( "port" ) as number ) ; return app . App ; } ) ( ) ;