Files
meanTorrent/server.js
Christian Berendt 4879a8ea2a Remove executable bit when not necessary
The executable bit is set for a lot of files where it is not necessary
to have the executable bit set. This PR removes the executable bit from
those files.
2015-02-16 14:19:56 +01:00

21 lines
455 B
JavaScript

'use strict';
/**
* Module dependencies.
*/
var config = require('./config/config'),
mongoose = require('./config/lib/mongoose'),
express = require('./config/lib/express');
// Initialize mongoose
mongoose.connect(function (db) {
// Initialize express
var app = express.init(db);
// Start the app by listening on <port>
app.listen(config.port);
// Logging initialization
console.log('MEAN.JS application started on port ' + config.port);
});