Brief introduction to Node.js® for non-programmer

Overview of Node.js

 

Node.js® is a platform built on Google 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 device. The Google Chrome’s V8 engine that normally runs on the Chrome browser but when we provide platform to run on the PC it could do much more functions like accessing files, network data, http request, database and many more. It behaves similar to the other server programming languages like PHP, ruby on rail etc.

 

Module

A group of related code for a specific action could be encapsulated into Module. Which could be later included into another job. We can compare it as a function of the C programming.

 

Package

A complete project can be called as a Package. When we install a package it will install all the required modules within the package. NPM is package manager for Node.Js® which contains a library of the package that are already developed and it could be easily reused within your project.

The package can be installed in as a local or global package. If you are planning to use package globally  then use ‘-g’ in the install command. 

 

Installation

  1. Node.js® – Download latest version from here –  https://nodejs.org/
  2. Run command line – go to location ofthenodejs folder – c:/program files/nodejs
    • Command 1 – ‘cd C:/program files/nodejs’
    • Command 2 – ‘install -g npm’ (To install npm as global use ‘-g’ else remote to install for local use)

 

Leave a Reply

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