Introduction to Node JS


Introduction to Node JS

Node JS is a very powerful platform based on Javascript v8 engine. Node JS is a flexible language that makes use of core concepts of JavaScript and ranges from small-scale to very large-scale web-based applications. It has great support for real-time communication using sockets and many other features.

We are very excited to bring this series of Node JS tutorials. Going through this Node JS course, you will be able to start working as a Node JS developer. This course targets especially beginner software developers, who want to stand up with the fast pace Javascript industry.

We will make things easier by giving examples. However, what we need from your side is your motivation, hard work, and practice after each tutorial. You must be able to run the Node JS examples to verify the output as explained in the articles.

For the Official reference to the Node JS documentation, click here.

Why is Node JS is a papular language for Web World?

The basic reason behind Node JS success is the availability of Java Script core concepts and a huge collection of libraries. It simplifies the development of web applications and server-side applications. On the other hand, Node JS supports Microsoft Windows, Apple OS X, and Linux. You can also find large communities present on the internet, providing quick solutions to the development problems.

If we try to summarize the introduction of Node JS in the form of an equation

Node JS = JavaScript + Runtime Environment

What are the features of Node JS?

Feature NameDescription of Feature
Very Fast to executeNode JS is built on the JavaScript Engine V8. This engine is provided by Google Chrome, hence Node executes very fast in terms of compilation of code.
ScalabilityAlthough, the Node JS language is single-threaded that uses event looping. But it makes the server give a response in a non-stopping manner. In this way, the servers that put a limit on the number of threads are also managed in an efficient way by Node JS. After the code compilation, the Node JS program uses a single thread to provide a larger number of requests. However, if we compare this behavior with traditional HTTP servers like Apache, it’s highly scalable.
No BufferingNode JS does not store data in buffers. It provides the data in chunks.
MIT LicenseIt is released with an MIT license. You can refer to it here.
Asynchronous and Events basedThis feature is inherited from Javascript and present in Node JS in a more enhanced form. Asynchronous calling allows the server to call the API and never wait for its response. The server can make the Next API call while the notification event mechanism is responsible for fetching the response of the previous API call.
Node JS Features with Details

A very comprehensive and beautiful read is provided by Node JS. After going through this introduction to Node JS, you will have a clear idea about the audience using Node JS. Which projects, companies, and applications are using Node JS, etc.

What are the applications where Node JS is the best option?

  • Single Page Web
  • Real time communication apps like messaging
  • API based applications that uses JSON data
  • Live streaming of data
  • Input/Output Bound applications

Note: The fact that Node JS is single-threaded but the CPU architecture uses a threaded environment to control the processes. So, it is not recommended for CPU-intensive applications.

How to set up the environment to start developing Node JS applications?

You can practice Node JS at online editors that contain an environment already set up. But, it’s good to know about Node JS setup locally. We need the following two basic things to start Nods JS.

  1. Text Editor – We will recommen the Microsoft Visuals Studio. You can download it from here. It provides some greate features like built-in store for extensions. Where you can download Node JS extensions. Also, VS Code allows to work with terminal directly by attaching terminal to it.
  2. Node JS runtime envrionemnt – You can download the installtion files from here. Select according to your Operating System.

Installing Node JS on Windows

Download the package for Windows from the link provided above and install it on your PC. It set the C:\Program Files\nodejs\bin window Path environment variable. To verify if the Node environment is set up successfully, create a .js file in VS Code and run the following code in it.

/* Introduction to Node JS */
console.log("Node JS, Hello Beginners!")

Installing Node JS on Linux and Mac OS

After downloading, move the extracted files to this location  /usr/local/nodejs. Add /usr/local/nodejs/bin to the PATH environment variable.

About the author

Tutor Network Team

Add comment

Tutor Network