Use of NODE JS

Node.js (Node) is an I/O environment built on top of Google Chrome's JavaScript runtime — essentially, a server-side implementation of JavaScript. Node's asynchronous, event-driven I/O model makes it easy for developers with JavaScript knowledge to build high-performing, scalable, and highly concurrent web applications rapidly and run them in the cloud. This knowledge path starts with Node.js basics and takes you beyond them to using Node and supporting technologies to build an application, test it, and deploy it on a platform-as-a service.

Why Node.js Now?

There are three main reasons why I’ve chosen to learn about Node.js right now:
  1. Now that Node.js is starting to show up seemingly everywhere (everywhere I spend my digital time anyway), I am compelled to really dive in and learn about this rapidly advancing platform.
  2. Node.js adoption is growing at a rapid pace and operations staff need to know what is coming so they can be prepared for it.

What I have found out about Node.js:

I started my journey at nodejs.org. Here is their definition right from their homepage: “Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.”
Hmmm, OK, that clears up the picture a little bit. Node.js is a platform that uses Chrome’s JavaScript runtime, that is a reference to Google’s open source V8 JavaScript engine.

How to work Node.js:

Install Node.js on windows in 2 mints 

Hello Node.js!

Here's a quick program to make sure everything is up and running correctly:
hello_node.jsvar http = require('http'); http.createServer(function (req, res) {   res.writeHead(200, {'Content-Type': 'text/plain'});   res.end('Hello Node.js\n'); }).listen(8124, "127.0.0.1"); console.log('Server running at http://127.0.0.1:8124/');
     Run the code with the node command line utility:
     node hello_node.jServer running at http://127.0.0.1:8124


     More :  Real time node.js clickhere
     (e) Books : clickhere
     (e) PPT : clickhere
     (e) Examples : clickhere




Previous
Next Post »