Share via


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 codevar 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 https://127.0.0.1:1337/');        

  Watch the video
 
Video of Install and Running for Node.js https://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

  • Anonymous
    February 02, 2012
    Bruno!  Easy to follow post.  Node is cool :)

  • Anonymous
    April 15, 2012
    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.

  • Anonymous
    May 01, 2012
    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.
  • Anonymous
    June 27, 2012
    Great!!!!! Amazing!!!!! Awesome!!!!!!!! Thanks a LOT !!!!!

  • Anonymous
    November 22, 2012
    Thanks.

  • Anonymous
    August 05, 2015
    Use an editor to write some JavaScript - where to save the javascript file