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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.