import { ExpressConfig } from './Express' ; import { logger } from '../common/logging' ; import * as config from 'config' ; export class Application { server : any ; express : ExpressConfig ; constructor ( ) { this . express = new ExpressConfig ( ) ; const port = config . get ( 'express.port' ) ; this . server = this . express . app . listen ( port , ( ) => { logger . info ( `
        ------------
        Server Started!
        Express: http://localhost:${ port }
        Swagger Docs: http://localhost:${ port }/docs
        Swagger Spec: http://localhost:${ port }/api-docs
        ------------
      ` ) ; } ) ; } }