17 lines
329 B
TypeScript
17 lines
329 B
TypeScript
// tslint:disable: no-console
|
|
import app from './app';
|
|
|
|
/**
|
|
* Start Express server.
|
|
*/
|
|
const server = app.listen(app.get('port'), () => {
|
|
console.log(
|
|
' App is running at http://localhost:%d in %s mode',
|
|
app.get('port'),
|
|
app.get('env')
|
|
);
|
|
console.log(' Press CTRL-C to stop\n');
|
|
});
|
|
|
|
export default server;
|