WebFund 2013W: Tasks 1: Difference between revisions

From Soma-notes
No edit summary
Line 13: Line 13:
* If you just run the node.exe executable by double-clicking on it, you'll get a ">" prompt.  This is the node read/eval/print loop.  Meaning, you type in JavaScript to it.
* If you just run the node.exe executable by double-clicking on it, you'll get a ">" prompt.  This is the node read/eval/print loop.  Meaning, you type in JavaScript to it.
* If you want to run a file with javascript in it in node, start up a command prompt, cd to the directory containing node.exe and your file foo.js, and then run "node foo.js".
* If you want to run a file with javascript in it in node, start up a command prompt, cd to the directory containing node.exe and your file foo.js, and then run "node foo.js".
* In the lab or elsewhere, if you get a firewall prompt, that is normal - node is trying to listen on a port.  That's exactly what firewalls are supposed to block.  Allow access.  Note that if you check any boxes you'll need to enter an admin password.  If you just allow access it should work.

Revision as of 20:13, 11 January 2013

Your first set of tasks are the following:

  • Setup an account on Piazza.
  • Setup an account on github.
  • Validate your student email with github to get a free student account: https://github.com/edu
  • Setup an account on the class wiki (optional).
  • Tell the TA your current ideas on your term project and who you would like to work with.
  • If you do not have a partner, post a blurb on Piazza to help find one, or reply to an existing solicitation.
  • Download and run/install a copy of node.js. A local copy of the standalone 32-bit windows executable here. Other versions are here.
  • Run the node.js hello world program as shown in the "Basic HTTP server" in the Node Beginner Book.

Hints

  • If you just run the node.exe executable by double-clicking on it, you'll get a ">" prompt. This is the node read/eval/print loop. Meaning, you type in JavaScript to it.
  • If you want to run a file with javascript in it in node, start up a command prompt, cd to the directory containing node.exe and your file foo.js, and then run "node foo.js".
  • In the lab or elsewhere, if you get a firewall prompt, that is normal - node is trying to listen on a port. That's exactly what firewalls are supposed to block. Allow access. Note that if you check any boxes you'll need to enter an admin password. If you just allow access it should work.