Introduction to Nodejs, Learn Node JS

Today we will see the Introduction to Nodejs and we will learn Node JS.

NodeJS is one of my favourite topics, Also it is a very demanding and hot topic in the market of technology.

On May 27, 2009, was the initial release of the Node JS, and after more than 10 years ago has it’s stable version 13.1.

 The Node JS Programming language has written on C, C++, and JavaScript.

It is an Open Source and cross-platform Application means that it can be run on various platforms like Linux, Windows, Mac and many other Operating System like this.

Because it’s Highly Scalable and can handle more requests than any other programing language.

The biggest giant Industries like Walmart, PayPal, Netflix, etc. using Node JS.  

Before the JavaScript mainly used inside the browser, but in 2009 after the lots of hard work Ryan made the first server-side script environment.

Then in 2010, they got their Node Package manager (NPM), which is one of the largest package registries in today’s world.

Also for Developers, it is very simple that they have to learn only one language for the frontend as well as backend.

To execute the JavaScript Code it uses the V8 engine with the JavaScript runtime environment,

Node js has the file extension .js like java has the extension .java and PHP language has the extension .php

So let’s discuss the Engine and the Runtime Environment.

The JavaScript is an interpreted language means that it reads the code line by line, not compile the whole program like java

V8 Engine: So when the code runs it slipt down into the pieces and convert that code into the runnable command, it converts the code into the machine language.

And the JavaScript Runtime Environment provides support to variables, objects, functions, arrays, and libraries we used in the code.

Now there are many Engines which converts the code into the Machine language

Google Chrome uses V8 Engine, Firefox uses a SpiderMonkey, the Apple also uses the browser know as Safari which has the Engine named as JavaScript Core, and the Microsoft edge used Chakra as there JavaScript Engine.

As we know the NodeJS is a Single-threaded Application, but process all the requests in a loop also called as an event loop.

Now let’s discuss what is the event loop?

The event loop allows the NodeJS to perform the non-blocking I/O operation and when the process is completed then it calls the callback function.

It will not wait for the previous statement to execute, it will move on to a new statement which is also known as ASync Process.

So now we will look into the Installation of NodeJS just click on the reference link for the detail installation guide.

Next, we will look into the PM2 which keeps the server up and running with the Environmental variables. Next, we will look into the PM2 Clustering.

And the last we will look how to maintain the logs via PM2 logrotate.

Thank you So Much guys for your valuable time!

Help me to improve the knowledge of the reader and my Team.

learn and understand nodejs, node js, learn node js, introduction to nodejs

5 Replies to “Introduction to Nodejs, Learn Node JS

Give your valuable time