Nodejs tutorial – Overview

Node.js is one of the most popular JavaScript Framework, is a server-side platform developed by Ryan Dahl in 2009 and built on Google Chrome’s JavaScript Engine (V8 Engine). Node.js provides the cross-platform runtime enviornment , driven on events and executes asynchronous transactions helps in building I/O intensive web applications, single-page applications, server based and network applications with ease. Node.js is open source, completely free, and used by thousands of developers around the world.

Node.js tutorial covers topics on Node.js installation on windows and linux, NodeJS REPL, NodeJS NPM, NodeJS callbacks, NodeJS event loop, NodeJS OS, NodeJS Path, NodeJS query string, NodeJS URL, NodeJS cryptography, NodeJS debugger, NodeJS DNS, NodeJS Net, NodeJS UDP, NodeJS process, NodeJS child processes, NodeJS buffers, NodeJS streams, NodeJS file systems, NodeJS global objects, NodeJS web modules etc

Node.js tutorial provides the basic and advanced concepts of Node.js.Knowledge of HTML /CSS/ AJAX should be useful.

Definition by Node.js official web site

Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast and 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.

Lets consider a simple server based processing scenario and where node.js executes client request in asynchronous fashion and eliminates the waiting time to be ready for processing next request.

PHP / ASP/ Java based server processingNode.JS server processing
Client submit the data request for processingClient submit the data request for processing
Client waits till the request is getting processedNo wait is required at client side
Server processes the request and sends it back to the Client Client is ready to process next request
Client is ready to process next requestWhen Server processes the request and sends it back to the Client

which conlcudes that Node.js runs single-threaded, non-blocking asynchronously programming and provides better memory efficiency.

What node.js provides to the developers ?

The below given are the features which makes it more popular among developers

  • Node.js helps in developing dynamic page content
  • Node.js provides numerous file based operations (create, open, read, write, delete, and close files on the server)
  • Node.js helps in collecting form data
  • Node.js provides feature for CRUD operations (Create, Read, Update ,Delete on the database

What a Node.js file contains ?

  • Node.js files contain tasks to be executed based on certain events
  • A Node.js event icould be accessing the server port
  • Node.js files must be initiated on the server
  • Node.js files should have extension “.js”

Node.js Download

The node.js can be downloaded from the Node.js official web site https://nodejs.org

Node.js sample file run

Once the successful installation, try to validate the node.js by executing the below sample program.

var http = require('http');
var requestListener = function (req, res) {
  res.writeHead(200);
  res.end('Hello, World!');
}
var server = http.createServer(requestListener);
server.listen(3000, function() { console.log("Listening on port 3000")});
Nodejs tutorial – Overview
Scroll to top
Copy Protected by Chetan's WP-Copyprotect.