import getApp from './app'
import getConfig,{ AppConfig } from './libs/config';
import logger from './libs/logger';

const config = getConfig() as AppConfig;
const port = config.port;
const env = config.env;

// eslint-disable-next-line prefer-const
let app = getApp(config);

app.listen(port, () => {
    logger.info(`Server started at port: ${port} using env: ${env}`);
});
