Include css and js file using node,express and ejs.

  1. server.js
app.use(express.static(__dirname + '/public'));

2. add css/js like:

Folder structure:

blog_express
--public
--css
--style.css

--server.js
--db.js
--package.json
--node_modules

In file:

<link rel="stylesheet" type="text/css" href="/css/style.css" />