Adding templates for login, sign-up, and profile

Now we have a solid basis to move forward with the project. At this time, we will add some template files for login, sign-up, and profile screens.

The expected result for these pages will be as shown in the following screenshot:

Adding templates for login, sign-up, and profile

Login screen

Adding templates for login, sign-up, and profile

Sign-up screen

Adding templates for login, sign-up, and profile

Profile screen

  1. Now let's create the login template. Create a new file called login.ejs in the views folder and place the following code:
     <!DOCTYPE ...

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

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