DTSMicah
@DTSMicah
2
3d runner game :)Use arrows to move around. This took quite a while to make :)
108
3
2
I was trying to learn Node.js. However, I cannot get any CSS to work in separate HTML files, with , and can't get JavaScript in it either. Any help, p
Node.js
SixBeeps Take a peek at line 7, app.use(express.static('public'));
This line marks a folder named public as a static folder. You can only GET something from a server if there's a routing for it (like using app.get in your server code) or if it's marked as static. So, if you want to GET some content, in your case some CSS and JS files, you'll have to make a new folder with those files in it and mark that folder as static.
Since you've already marked public as static, I'd recommend just naming the folder2 years ago