ffffng/server/main.js

31 lines
611 B
JavaScript
Raw Normal View History

2014-05-12 20:08:19 +02:00
/*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/strings');
require('./resources/nodeResource');
require('./services/nodeService');
require('../shared/validation/constraints');
require('./validation/validator');
2014-05-12 20:08:19 +02:00
angular.injector(['ffffng']).invoke(function (config, app, Router) {
Router.init();
2014-06-06 21:22:57 +02:00
app.listen(config.server.port, '::');
2014-05-12 20:08:19 +02:00
module.exports = app;
});