Working server template from the tutorial: How To Use EJS to Template Your Node Application (steps 1 - 3 modified). Used node v12.18.3, express v4.17.1 and ejs v3.1.6.
Extra: Also links main.js file to the index.ejs file.
npm install
Run the command below and open application in the browser at http://localhost:8080/
npm start