async start() {
        if(this._running) return;
        this.customerLogic = await CustomerLogicFactory.createAndInitializeCustomerLogicHandler(true);
        const cfg = await this.loadConfig();
        this.sequelize = await this.sequelizeLoader.start({logInstalledVersions: true});

        if(!(await this.sequelizeLoader.checkDb())) {
            console.log("CRITICAL", "Database not installed correctly. Please run [npm run install].");
            await this.stop();
            return;
        }

        this.sessionStore = new SequelizeStore({
            db: this.sequelize
        });
        this.sessionStore.sync();
        this.express = await this.expressLoader.start(cfg.web, this.sessionStore);

        this._running = true;
        console.log("INFO", `Initialized successfully with configuration: ${JSON.stringify(cfg, null, 2)}`);
    }
/**
     * Starts the application
     * @return {Promise<void>}
     * @memberof WebApplication
     */
Starts the application
@return {Promise}
@memberof WebApplication
Starts the application @return { Promise } @memberof WebApplication
async start() {
        if(this._running) return;
        this.customerLogic = await CustomerLogicFactory.createAndInitializeCustomerLogicHandler(true);
        const cfg = await this.loadConfig();
        this.sequelize = await this.sequelizeLoader.start({logInstalledVersions: true});
        if(!(await this.sequelizeLoader.checkDb())) {
            console.log("CRITICAL", "Database not installed correctly. Please run [npm run install].");
            await this.stop();
            return;
        }
        this.sessionStore = new SequelizeStore({
            db: this.sequelize
        });
        this.sessionStore.sync();
        this.express = await this.expressLoader.start(cfg.web, this.sessionStore);
        this._running = true;
        console.log("INFO", `Initialized successfully with configuration: ${JSON.stringify(cfg, null, 2)}`);
    }
async start ( ) { if ( this . _running ) return ; this . customerLogic = await CustomerLogicFactory . createAndInitializeCustomerLogicHandler ( true ) ; const cfg = await this . loadConfig ( ) ; this . sequelize = await this . sequelizeLoader . start ( { logInstalledVersions : true } ) ; if ( ! ( await this . sequelizeLoader . checkDb ( ) ) ) { console . log ( "CRITICAL" , "Database not installed correctly. Please run [npm run install]." ) ; await this . stop ( ) ; return ; } this . sessionStore = new SequelizeStore ( { db : this . sequelize } ) ; this . sessionStore . sync ( ) ; this . express = await this . expressLoader . start ( cfg . web , this . sessionStore ) ; this . _running = true ; console . log ( "INFO" , ` ${ JSON . stringify ( cfg , null , 2 ) } ` ) ; }
Starts the application
 @return {Promise<void>}
 @memberof WebApplication
Starts the application @return { Promise<void > } @memberof WebApplication