const express = require('express') const app = express() const port = 3003 const serveIndex = require('serve-index') const publicPath = "/public" const inUrlPath = "public" app.set('view engine', 'hbs') app.use(publicPath, express.static(inUrlPath), serveIndex(inUrlPath, { icons: true })) app.get('/', (_req, res) => { res.render("home") }) app.listen(port, () => { console.log(`Listening on port ${port}`) })