Angular.js Tutorial Using Node.js Web Server

I am trying to pass Angular.js Tutrorial_00 and it seems that I cannot figure out how to get the node.js web server to run the demo application?

Has anyone done this manual or knew how to use this step correctly to make the server work?

  • For node.js users: in a separate tab or terminal window, run node scripts\web-server.js to start the web server. Open browser window
  • for the application and go to http://localhost:8000/app/index.html

What happens is that I run step 1 in node.js and then output "...", which I suppose means it is listening.

Then, when I go to step 2, I type it in the browser and get "Unfortunately, Google Chrome was unable to connect to."

+7
source share
1 answer

node scripts\web-server.js is a command line, not part of JavaScript.

Run it in a shell (on Windows, which probably means PowerShell), and make sure you are in the correct directory. Do not try to run it in node REPL.

+14
source

All Articles