Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Dhanasupriya
Active Participant
2,000
In this blog post, I am going to discuss on What is Node.js, Why is it used and a quick demonstration on how Node.js is filling the developer needs.

What is Node.js

Javascript developers could now use Javascript on the server side so they could use the same Javascript programming language to create web servers, command line interfaces, application back-ends.

On a high level, Node.js is a way to run Javascript code on the server as opposed to being forced to run it on the client in the browser.

Netflix, Uber and Walmart are using Node.js in production.

Node.js is not a programming language. It provides various tools that node developers need like libraries for setting up web servers, integrating with the file systems so you can read and write from disk.

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.


Why is Node.js

Useful for developers anywhere on the stack. So being front-end developers we might need to use a little node here and there to compile our apps or maybe serve up a website we are working with.

Obivously, backend engineers are using node.js extensively to build out their web app backends, API’s and command line applications.

Node.js uses an event driven, non-blocking I/O(Input/Output) model that makes it lightweight and efficient.


Node.js is a package ecosystem. NPM is the largest ecosystem of open source libraries in the world.

NPM is a tool that was actually installed on our machine when a node was installed.

From npmjs.com, we can search for plenty of pre-written packages that we can use inside of our application.

Setup required: 

Download and Install the latest version of node from nodejs.org

Download and install Visual Studio Code Editor.

Demo on how to use Node.js Core Modules:


By executing the app.js in terminal, a new file notes.txt will get created with the string we passed as argument.


Demo on using npm Modules:

By giving the following commands in the terminal, we can install npm libraries into our project.

npm install validator

npm install chalk


Now execute the app.js file again and here is the output of it.


Finally i came to end of my blog. I will be posting few more learning's on Node.js.

Please comment if any..

Thank you!!

#EnhanceLearning
1 Comment
Labels in this area