Getting Started: Node.js

Advertisement:

This video tutorial illustrates, running node.js programs.

Contains
Downloading procedure, links to official site.
Getting started with first node.js application(‘ Hello World ‘) program.

nodejs

hello.js

1
  console.log('Hello World');

This line, prints the string Hello World on the console window.

Command
Goto command prompt and navigate to the directory where you’ve saved hello.js file.
Now type the following command to execute the node.js program

1
 node hello.js

i.e., node is the command followed by file name.

Hello World: Node.js


You need to a flashplayer enabled browser to view this YouTube video

YouTube Link: http://www.youtube.com/watch?v=eP6cUdIBwzM [Watch the Video In Full Screen.]



Output:
Hello World

Note:
To let you know, I’m writing my code on Windows 7 Operating System. So please check with alternative methods for your operating system. If there’s any significant difference, do let us know in the comment section. Most of the code we write must work across various platforms.

Next Video..
This video tutorial is just to get you started with node.js
In our next video we’ll show you how to create a server using node.js and get the response from our server on to the web browser(upon request).

Stay tuned, it’s fun to explore it.

Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *