const express = require('express') const path = require('path') const PORT = process.env.PORT || 1234 express() .use(express.static(path.join(__dirname,'public'))) .get('/', (req, res) => res.render('index')) .listen(PORT, () => console.log(`Listening on ${ PORT }`))