I\'m very new to NodeJS, and I\'m currently playing around with it (and websockets), so this question might be a bit dumb. Anyway, I\'m following a tutorial which has given
you can specify to the server in which folder to look for what
for static files such as css, images you can use public directory, you can provide your custom directory, but it's better to use public ,same goes for views
always require
const PATH = require('path')
app.use(express.static(PATH.join(__dirname, 'public')));
for template files such as .ejs, .html, .jade
use
app.set('views', PATH.join(__dirname, 'views'));