Build a Weather Website in 30 minutes with Node.js + Express + OpenWeather
Brandon Morelli
1.7K23

Hi Brandon, having a little trouble trying to get the page to load the css.

In server.js:

app.use(express.static(‘/public’))

In index.ejs:

<link rel=”stylesheet” type=”text/css” href=”/css/index.css”>

My directory:
weather-app
_public
__css
___index.css
views
_index.ejs
server.js

Appreciate the help!

Like what you read? Give Rainier Louis a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.