{"size": 409, "ext": "js", "max_stars_repo_path": "server-start.js", "max_stars_repo_name": "Bangood/node-server-template", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server-start.js", "max_issues_repo_name": "Bangood/node-server-template", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server-start.js", "max_forks_repo_name": "Bangood/node-server-template", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.0588235294, "max_line_length": 73, "alphanum_fraction": 0.6479217604}
/**
 * Created by pure on 2017/8/30.
 */
require('babel-register');
require('babel-polyfill');

const app = require('./server').default;
const config = require('./config/config').default;
const logger = require('./config/logger').default;
if (module.parent) {
  module.exports = app;
} else {
  app.listen(config.port, () => {
    logger.info(`server started on port ${config.port} (${config.env})`);
  });
}
