INNER CODE UNIT · JavaScript

StartServer

codergogoi/nodejs_microservice · customer/src/index.js:7

const StartServer = async() => {

    const app = express();
    
    await databaseConnection();

    const channel = await CreateChannel()

    await expressApp(app, channel);
    

    app.listen(PORT, () => {
          console.log(`listening to port ${PORT}`);
    })
    .on('error', (err) => {
        console.log(err);
        process.exit();
    })

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…