Video Tutorial – How to install and run Node.js on Windows



  What this post is about
  This post is about getting Node.js up and running on a Windows Platform. This step will be followed by some guidance on how to host Node.js in a Microsoft Cloud Data Center, called Windows Azure.

Node.js is a software system designed for writing highly-scalable internet applications, notably web servers.

What makes Node.js compelling is the fact that is is based on the JavaScript language, opening the door for developers to not only write client side JavaScript put also server side.Node.js is built for scale, using event-driven, asynchronous I/O to minimize overhead and maximize scalability.        

  Video Content
   image

This content shows 3 basic steps:       


Step 1 Install Node.js to run under Windows.
Step 2 Use an editor to write some JavaScript
Step 3 Run the application and a browser to test with.

  Source Code
 
// JScript source code
var http = require('http');
http.createServer(function (req, res) {
    res.writeHead(200, { 'Content-Type': 'text/plain' });
    res.end('Hello World\n');
}).listen(1337, "127.0.0.1");
console.log('Server running at http://127.0.0.1:1337/');
        

  Watch the video
 
Video of Install and Running for Node.js http://brunoblogfiles.com/videos/Node_js_Install.wmv

  Conclusions
  Future content will explain more complex topics, like using Socket.IO and Express. Migrating applications to the Microsoft Cloud (Windows Azure) will also be explained and demonstrated.

Download for Free Azure Trial


lahxjo2d


Comments (6)
  1. palermo4 says:

    Bruno!  Easy to follow post.  Node is cool 🙂

  2. Quest Yarbrough says:

    Good tutorial. Short, to the point, and gets you up and running.

    Windows users should definitely remember that your PATH won't update until you restart (or use some cumbersome workarounds), so do that after your Node install.

  3. Will Hancock says:

    Thanks, though as a purely front-ender did get frustrated.

    1. Quest Yarborough, thanks a lot for that, was pulling my hair out.

    2. I was looking for the node directory on my C thinking it would of created it, as soon as I figured out it was my directory C:sites… got it working.

  4. Nazar says:

    Great!!!!!

    Amazing!!!!!

    Awesome!!!!!!!!

    Thanks a LOT !!!!!

  5. Diện says:

    Thanks.

  6. Gokul says:

    Use an editor to write some JavaScript – where to save the javascript file

Comments are closed.

Skip to main content