ncc-prototype-email-alerts-sub
Version:
Northumberland Council Front End Email Alerts Subscription Prototype
15 lines (11 loc) • 376 B
text/typescript
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}`);
});