lib/server.js
function ChickadeeServer(options) {
  options = options || {};
  var specifiedHttpPort = options.httpPort || HTTP_PORT;
  var httpPort = process.env.PORT || specifiedHttpPort;

  var app = express();
  app.use(bodyParser.json());

  var instance = new Chickadee(options);
  options.app = app;
  instance.configureRoutes(options);

  app.listen(httpPort, function() {
    console.log('chickadee is listening on port', httpPort);
  });

  return instance;
}
function ChickadeeServer(options) {
  options = options || {};
  var specifiedHttpPort = options.httpPort || HTTP_PORT;
  var httpPort = process.env.PORT || specifiedHttpPort;

  var app = express();
  app.use(bodyParser.json());

  var instance = new Chickadee(options);
  options.app = app;
  instance.configureRoutes(options);

  app.listen(httpPort, function() {
    console.log('chickadee is listening on port', httpPort);
  });

  return instance;
}
function ChickadeeServer ( options ) { options = options || { } ; var specifiedHttpPort = options . httpPort || HTTP_PORT ; var httpPort = process . env . PORT || specifiedHttpPort ; var app = express ( ) ; app . use ( bodyParser . json ( ) ) ; var instance = new Chickadee ( options ) ; options . app = app ; instance . configureRoutes ( options ) ; app . listen ( httpPort , function ( ) { console . log ( 'chickadee is listening on port' , httpPort ) ; } ) ; return instance ; }
ChickadeeServer Class
Server for chickadee, returns an instance of chickadee with its own Express
server listening on the given port.
@param {Object} options The options as a JSON object.
@constructor
ChickadeeServer Class Server for chickadee returns an instance of chickadee with its own Express server listening on the given port .