30 lines
612 B
JavaScript
30 lines
612 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/strings');
|
|
|
|
require('./resources/nodeResource');
|
|
|
|
require('./services/nodeService');
|
|
|
|
require('../shared/validation/constraints');
|
|
require('../shared/validation/validator');
|
|
|
|
angular.injector(['ffffng']).invoke(function (config, app, Router) {
|
|
Router.init();
|
|
|
|
app.listen(config.port, '::');
|
|
module.exports = app;
|
|
});
|