UNPKG

airship-server

Version:

Airship is a framework for Node.JS & TypeScript that helps you to write big, scalable and maintainable API servers.

23 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BaseConsoleApplication_1 = require("../../modules/utils/BaseConsoleApplication"); const ConsoleLogger_1 = require("../../modules/logger/infrustructure/ConsoleLogger"); const HHEventsNotificationsServer_1 = require("../application/HHEventsNotificationsServer"); class HHEvntsNotificationsServerApplication extends BaseConsoleApplication_1.default { constructor() { super(); const env = process.env['NODE_ENV'] || 'development'; const rabbitConfig = { 'production': 'amqp://guest:n5Wh6HGh97zReTSJTYnnsLT7@localhost:5672', 'test': 'amqp://guest:n5Wh6HGh97zReTSJTYnnsLT7@localhost:5672', 'development': 'amqp://guest:guest@localhost:5672', }; let logger; logger = new ConsoleLogger_1.default(); const db = require('../../../models'); const server = new HHEventsNotificationsServer_1.default(db); server.start(); } } new HHEvntsNotificationsServerApplication(); //# sourceMappingURL=HHEvntsNotificationsServerApplication.js.map