title: How to run html file using node js
body: <p>I have a simple html page with angular js as follows:</p>
  
  <pre><code>    //Application name
      var app = angular.module("myTmoApppdl", []);
  
      app.controller("myCtrl", function ($scope) {
          //Sample login function
          $scope.signin = function () {
              var formData =
                      {
                          email: $scope.email,
                          password: $scope.password
                      };
          console.log("Form data is:" + JSON.stringify(formData));
      };
  });
  </code></pre>
  
  <p>HTML file:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;link href="bootstrap.min.css" rel="stylesheet" type="text/css"/&gt;
      &lt;/head&gt;
  
      &lt;body ng-app="myTmoApppdl" ng-controller="myCtrl"&gt;
          &lt;div class="container"&gt;
              &lt;div class="form-group"&gt;
                  &lt;form class="form" role="form" method="post" ng-submit="signin()"&gt;
                      &lt;div class="form-group col-md-6"&gt;
                          &lt;label class=""&gt;Email address&lt;/label&gt;
                          &lt;input type="email" class="form-control" ng-model="email" id="exampleInputEmail2" placeholder="Email address" required&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group col-md-6"&gt;
                          &lt;label class=""&gt;Password&lt;/label&gt;
                          &lt;input type="password" class="form-control" id="exampleInputPassword2" ng-model="password" placeholder="Password" required&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
                  &lt;button type="submit" class="btn btn-primary btn-block"&gt;Sign in&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  
      &lt;script src="angular.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;!--User defined JS files--&gt;
      &lt;script src="app.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="jsonParsingService.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am new to node js. I have installed node js server in my system but I am not sure how to run a simple html file using node js?</p>