INNER CODE UNIT · TypeScript

server

meysamhadeli/booking-microservices-expressjs · src/identity/src/app.ts:61

  const server = app.listen(config.port, () => {
    logger.info(`Listening to http://localhost:${config.port}`);
  });

  await initialRabbitmq();

  await registerMediatrHandlers();

  if (config.env == 'development') {
    await initialSwagger(app);
  }

  process.on('SIGINT', async () => {
    server.close();
    Logger.info('Application shutdown gracefully.');
  });
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…