Wednesday, January 23, 2019

node.js







Node.js is open source, completely free, and used by thousands of developers around the world. It is used to develop I/O intensive web applications like video streaming sites, single-page applications, and other web applications.
Node.js is a very powerful JavaScript-based framework/platform built on Google Chrome's JavaScript V8 Engine. It is used to develop I/O intensive web applications like video streaming sites, single-page applications, and other web applications. Node.js is open source, completely free, and used by thousands of developers around the world.Node.js is an open source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, and Linux.
Node.js also provides a rich library of various JavaScript modules which simplifies the development of web applications using Node.js to a great extent.

Features of Node.js

 ➤Asynchronous and Event Driven
 ➤Very Fast
 ➤Single Threaded but Highly Scalable
 ➤No Buffering 
 
Where to Use Node.js?

Following are the areas where Node.js is proving itself as a perfect technology partner.

    ➤I/O bound Applications
    ➤Data Streaming Applications
    ➤Data Intensive Real-time Applications (DIRT)
    ➤JSON APIs based Applications
    ➤Single Page Applications



Node JS code have the following three important keyword..


➤Import required modules − We use the require directive to load Node.js modules.

➤Creating server − A server which will listen to client's requests

➤Read request and return response − The server created in an earlier step will read the HTTP request made by the client which can be a browser or a console and return the response.



Node Package Manager

➤Node Package Manager (NPM) provides two main functionalities −

  • 1.Online repositories for node.js packages/modules which are searchable on search.nodejs.org
  • 2.Command line utility to install Node.js packages, do version management and dependency management of Node.js packages.

No comments:

Post a Comment

React React  is a JavaScript library for building user interfaces created by Facebook. It is maintained by Facebook and a community of...