-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Tim Etler edited this page Mar 28, 2015
·
2 revisions
The best way to install node is with nvm (node version manager): https://github.com/creationix/nvm
If you are using windows, you can use nvm-windows: https://github.com/coreybutler/nvm-windows
Once you have nvm installed, run nvm install v0.12.0
Make sure node and npm are both working. Type node into your console and check to see if it takes you to the javascript REPL. Type npm into your console and check to see if it outputs usage info.
Create a file called server.js and paste the following code:
require('http').createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.end('hello');
}).listen(8080);
Run the command node server.js.
Open the url http://localhost:8080/ and make sure it prints out "hello".
If all that worked, you are ready to start the test. Let us know and we'll send you the boilerplate repository.