// projectDirectory/src/index.js
const path = require('path')
const publicDirectoryPath = path.join(__dirname, '../public')
app.use(express.static(publicDirectoryPath))
// projectDirectory/public -> create index.html
// localhost:3000/index.html -> Here you go..
// dependencies
const path = require('path');
// set static folder
app.set(express.static(path.join(__dirname, 'public')));