Creating view files

In this section, we will use the same view files used in Chapter 01 for the following files:

  • views / partials / javascripts.ejs
  • views / partials / stylesheets.ejs
  • views / pages / login.ejs
  • views / pages / signup.ejs
  • views / pages / profile.ejs
  • views / pages / index.ejs
  • views / pages / comments.js
  • views / pages / error.ejs

As previously commented, you can download these files from the Packt website or the official  GitHub repository of the book.

In addition to these files, we will create the views files for the photos and videos page, and add these routes to the application menu:

  1. Create a file called footer.ejs inside the views/partials folder and add the following code:
     <footer class="footer"> <div class="container"> <span>&copy 2016. ...

Get Node.js 6.x Blueprints now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.