36 lines
828 B
JavaScript
36 lines
828 B
JavaScript
/*jslint node: true */
|
|
'use strict';
|
|
|
|
// Dirty hack to allow usage of angular modules.
|
|
global.angular = require('ng-di');
|
|
|
|
angular.module('ffffng', []);
|
|
|
|
require('./config');
|
|
|
|
require('./app');
|
|
require('./router');
|
|
require('./libs');
|
|
|
|
require('./utils/errorTypes');
|
|
require('./utils/resources');
|
|
require('./utils/strings');
|
|
|
|
require('./resources/nodeResource');
|
|
require('./resources/monitoringResource');
|
|
|
|
require('./services/mailService');
|
|
require('./services/nodeService');
|
|
require('./services/monitoringService');
|
|
|
|
require('../shared/validation/constraints');
|
|
require('./validation/validator');
|
|
|
|
require('./db/database').init(function () {
|
|
angular.injector(['ffffng']).invoke(function (config, app, Router) {
|
|
Router.init();
|
|
|
|
app.listen(config.server.port, '::');
|
|
module.exports = app;
|
|
});
|
|
});
|