
const app = require('app.js');

const port = 8080;

app.listen(port, () => console.log(`Listening on port ${port}`));


const 
    app = require('app.js'),
    {port} = require('config.js');

app.listen(port, () => console.log(`Listening on port ${port}`));

make server run on the configured port