Top Node.js tutorial for beginners

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 environment , 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, REPL module in Node.js, NPM module in Node.js, Node.js callbacks examples , Node.js event loop examples, Node.js OS module examples , Node.js Path module examples , Node.js query string examples, Node.js URL examples , cryptography in Node.js, Node.js debugger examples , DNS module in Node.js , Node.js Net module example, Node.js UDP example, process example in Node.js , child processes in Node.js, buffer module example in Node.js, streams example in Node.js, file system module in Node.js, global objects in Node.js, NodeJS web modules , module level object scope in Node.js

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

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 processing
Node.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

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")});

Node.js Tutorial Topics

The below given are the common topics for beginners to learn Node.js.

Node.js installation on Windows / Linux OS

Tutorial explains the step by step process for installing node.js on windows / Linux OS

Components and module in Node.js

Tutorial explains the usage of components and module in node.js with examples

Punnycode module in Node.js

Tutorial explains the node.js punnycode module with examples

String Decoder in Node.js

Tutorial explains the node.js string decoder with examples

Query String in Node.js

Tutorial explains the node.js query string with examples

Console in Node.js

Tutorial explains the usage of console in node.js with examples

Path module in Node.js

Tutorial explains the path module in node.js with examples

TTY module in Node.js

Tutorial explains the tty module in node.js with examples

File System module in Node.js

Tutorial explains the file system module in node.js with examples

Streams module in Node.js

Tutorial explains the streams module in node.js with examples

TLS SSL module in Node.js

Tutorial explains the tls ssl module in node.js with examples

Crypto module in Node.js

Tutorial explains the crypto module in node.js with examples

Net module in Node.js

Tutorial explains the net module in node.js with examples

OS module in Node.js

Tutorial explains the os module in node.js with examples

DNS module in Node.js

Tutorial explains the dns module in node.js with examples

Error Handling in Node.js

Tutorial explains the error handling in node.js with examples

Buffer Class in Node.js

Tutorial explains the buffer class in node.js with examples

Global and module level objects in Node.js

Tutorial explains the scope for global objects and module level objects in node.js with examples

Command Line Options in Node.js

Tutorial explains the command line options in node.js with examples

REPL module in Node.js

Tutorial explains the REPL module in node.js with examples

Node.js MySQL Integration examples

Node.js example to create MySQL table

Tutorial provides the node.js integration program to create MySQL table

Node.js example to drop MySQL table

Tutorial provides the node.js integration program to drop MySQL table

Node.js example to Insert records into MySQL table

Tutorial provides the node.js integration program to insert record into MySQL table

Node.js example to Select records from MySQL table

Tutorial provides the node.js integration program to select record from MySQL table

Node.js example to Update records into MySQL table

Tutorial provides the node.js integration program to update record into MySQL table

Node.js example to Delete records from MySQL table

Tutorial provides the node.js integration program to delete record from MySQL table