Front end of the Slack clone application.

12345678910111213
  1. const port = process.env.LR_PORT || process.env.PORT || 35729;
  2. process.env.DEBUG = process.env.DEBUG || 'tinylr*';
  3. const debug = require('debug')('tinylr:server');
  4. const app = require('./app');
  5. debug('Starting server');
  6. app.listen(port, function (err) {
  7. if (err) throw err;
  8. debug('listening on %d', port);
  9. });