Setting Up the Project Node.js template with EmbedJS EJS

The project structure we will be working towards will look something like this:

  • views/ will contain our EJS templates and the partials we will include
  • app.js will have our Express configuration and routes
  • package.json will maintain our dependencies (Express and EJS)

Go ahead and create and empty directory then cd into it:

mkdir node-blog && cd node-blog

and let’s initialize a package.json and install both EJS and Express:

npm init -y
npm install --save express ejs

Source : https://codequs.com/p/ByivsXfY/getting-started-with-node-js-template-with-ejs/

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.