Creating an index.ejs file

We will use EJS (effective JavaScript templating) to render HTML content on the page. EJS and Node.js go hand in hand. It's simple, flexible, easy to debug, and increases development speed. Initially, index.ejs would look like the following code snippet:

    <!DOCTYPE html>    <html>    <head>        <meta name="viewport" content="width=device-width, initial-         scale=1.0"/>    </head>    <body>    <div id="container" class="mainContainer">    </div>    </body>    </html>

The <div> tag will contain all different views, for example, the Login View, Chat Window View, and so on. 

Get Kotlin 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.