feathersjs/feathers-redux

View on GitHub
example/server/index.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable no-console */
'use strict';

const logger = require('winston');
const app = require('./app');
const port = app.get('port');
const server = app.listen(port);

process.on('unhandledRejection', (reason, p) =>
  logger.error('Unhandled Rejection at: Promise ', p, reason)
);

server.on('listening', () =>
  logger.info(`Feathers application started on ${app.get('host')}:${port}`)
);