I am trying to test my nodejs is install and configured correctly. I am running on a MAC.
I have followed the suggestion from here involving the server.
Below is the server I have setup. The file resides in the ~/ directory.
1 var connect = require('connect'),
2 serveStatic = require('serve-static');
3
4 var app = connect();
5
6 app.use(serveStatic("./node_modules/angular"));
7 app.listen(5000);
Below is my test html file. It is located in the ~/node_modules/angular directory.
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head ng-app>
4 <title>First Test</>
5 <script src="angular.js"></script>
6 <link href="bootstrap.css" rel="stylesheet" />
7 <link href="bootstrap-theme.css" rel="stylesheet" />
8 </head>
9 <body>
10 <div class=“btn btn-default”>{{“AngularJS”}}</div>
11 <div class=“btn btn-success”>Bootstrap</div>
12 </body>
13 </html>
My problem is the server starts with no issues. The URL seems to be working. However, nothing is displaying in the browser. Where I go spying on the page. I see nothing.
I am getting back a http response of 200 when I look at the network tab:
Any suggestions would be appreciated.