async function startServer(){
    await loaders({ expressApp:app })
    server.listen(port);
    server.on('error', onError);
    server.on('listening', onListening);
    process.on('SIGINT', function(){
        mongoose.connection.close(function(){
          console.log("Mongoose default connection is disconnected due to application termination");
           process.exit(0);
          });
    });
}
/**
 * Initalizing http server to listen to requests
 * Listen on provided port, on all network interfaces.
 */
Initalizing http server to listen to requests
Listen on provided port, on all network interfaces.
Initalizing http server to listen to requests Listen on provided port on all network interfaces .
async function startServer(){
    await loaders({ expressApp:app })
    server.listen(port);
    server.on('error', onError);
    server.on('listening', onListening);
    process.on('SIGINT', function(){
        mongoose.connection.close(function(){
          console.log("Mongoose default connection is disconnected due to application termination");
           process.exit(0);
          });
    });
}
async function startServer ( ) { await loaders ( { expressApp : app } ) server . listen ( port ) ; server . on ( 'error' , onError ) ; server . on ( 'listening' , onListening ) ; process . on ( 'SIGINT' , function ( ) { mongoose . connection . close ( function ( ) { console . log ( "Mongoose default connection is disconnected due to application termination" ) ; process . exit ( 0 ) ; } ) ; } ) ; }
Initalizing http server to listen to requests
 Listen on provided port, on all network interfaces.
Initalizing http server to listen to requests Listen on provided port on all network interfaces .