All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nodejs-express-server.index.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
const config = require('./config');
const logger = require('./logger');
const ExpressServer = require('./expressServer');

const launchServer = async () => {
  try {
    this.expressServer = new ExpressServer(config.URL_PORT, config.OPENAPI_YAML);
    this.expressServer.launch();
    logger.info('Express server running');
  } catch (error) {
    logger.error('Express Server failure', error.message);
    await this.close();
  }
};

launchServer().catch(e => logger.error(e));




© 2015 - 2024 Weber Informatics LLC | Privacy Policy