INNER CODE UNIT · TypeScript
server
meysamhadeli/booking-microservices-expressjs · src/booking/src/app.ts:62
const server = app.listen(config.port, () => {
logger.info(`Listening to http://localhost:${config.port}`);
});
await initialRabbitmq();
await initialHttpClientServices();
await registerMediatrHandlers();
if (config.env == 'development') {
await initialSwagger(app);
}
process.on('SIGINT', async () => {
server.close();
Logger.info('Application shutdown gracefully.');
});