title: How to render a HTML page form NodeJs API?
body: <p>**After running http-server, I try to get to URL- <a href="http://127.0.0.1:8080" rel="nofollow noreferrer">http://127.0.0.1:8080</a> -  but  instead of what I write, I get
  "Node.js v8.11.4/ ecstatic server running @ 127.0.0.1:8080"` every time I try. </p>
  
  <p>But index.html file opens when clicked directly from the button, shows chrome as default browser and any changes made in coding like adding an email, password or changing the background color, it catches it accordingly.  How can I solve this problem??**</p>
  
  <p>Here is the code for index.html-</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
              &lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"&gt;
              &lt;script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"&gt;&lt;/script&gt;
              &lt;link rel="stylesheet" href="css/style.css" /&gt;
              &lt;script src="https://www.gstatic.com/firebasejs/5.4.0/firebase.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body class="bg-dark"&gt;
  
          &lt;div id="login-card" class="card"&gt;
              &lt;div class="card-body"&gt;
                  &lt;h1&gt; Wallpaper App Admin &lt;/h1&gt;
  
                  &lt;form id="login-form"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label for="email"&gt;Email&lt;/label&gt;
                          &lt;input type="email" id="email" class="form-control" /&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                              &lt;label for="password"&gt;Password&lt;/label&gt;
                              &lt;input type="password" id="password" class="form-control" /&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;button id="btn-login" type="button" class="btn btn-primary"&gt;Login&lt;/button&gt;
                          &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;script src="js/app.js"&gt;&lt;/script&gt;
  
          &lt;script&gt;
  
              firebase.auth().onAuthStateChanged(function(user){
                  if(user){
                      window.location.href = "admin.html";
                  }
              });
  
          &lt;/script&gt;
  
          &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>