blob: e6e3383f3642de9b8d88f87eb421d4d3ed18656b [file] [log] [blame]
talasila4ad39a52017-02-07 15:03:57 -05001'use strict';
2//let serverCommon = require('ssp_server_common');
3let express = require('express');
4let config = require('./config/environment');
5
6//let logger = serverCommon.getLogger(config);
7// Setup server
8let app = express();
9let server = require('http').createServer(app);
10require('./config/express')(app);
11require('./routes')(app);
12
13// Start server
14server.listen(config.port, config.ip, ()=> {
15 console.log('Express server listening on %d port, in %s mode', config.port, config.ip);
16});
17
18// Expose app
19module.exports = app;