What is Node.js?

Node.js is a server-side platform built on Google Chrome’s JavaScript Engine (V8 Engine). Node.js was developed by Ryan Dahl in 2009 and its latest version is v0.10.36. The definition of Node.js as supplied by its official documentation.

Node.js is an open source, cross-stage runtime condition for creating server-side and systems administration applications. Node.js applications are composed in JavaScript and can be keep running inside the Node.js runtime on OS X, Microsoft Windows, and Linux.

Node.js likewise gives a rich library of different JavaScript modules which improve the advancement of web applications utilizing Node.js all things considered.

 

What we get from Node.js?

1. Asynchronous and Event Driven 

All APIs of Node.js library is asynchronous, which means a server based on Node.js will not wait for an API to return data. It simply moves to the next API after calling and the notification system for events of Node.js make sever to a response from the previous API call.

2. Very fast 

 As Node.js is built on the “Google Chrome’s V8 engine”, which makes execution of code very fast.

3. Single Threaded but Highly Scalable 

Node.js uses the single thread model with event looping. Event system of node.js helps sever to respond in an asynchronous way and make server highly scalable than the traditional server. Node.js server can handle a much large number of requests than the traditional server (like Apache HTTP).

4. No Buffering 

There is no data buffering in Node.js applications, the output is simply in output chunks.

What Node.js contains for us?

Applications where Node.js give outstanding results 

  1. I/O bound applications
  2. Data streaming applications
  3. Data Intensive Real-time Applications (DIRT)
  4. JSON API’s based application.
  5. Single page application

Awesome things you can do with Node.js :

1. Gif chat application

Same as Android, Chrome and Firefox browser have API’s to access physical media of your machine (like camera, mic etc). With the help Node.js, we can create a chat room for GIF. Get source code here.

 

2. RC Car 

When you use gaming controls, the commands get sent over WebSockets to the Node.js server and then that server sends those instructions in real-time over USB to a small computer called Arduino. The Arduino sends the key presses programmatically to the remote control to control the car.

3. Control others PC from the internet 

Have you heard about “Team viewer”, it is a software which is used to control others PC from your PC over the internet. Every time it is not necessary for recreation using Node.js, there is utility too. Using node.js you can control others PC from socket programming. The source code here.

4. Group drawing tool 

By using the feature of jQuery with Node.js you can make a web app for group drawing. This means you can share a digital drawing board with your friends and draw collectively. Try an app of this kind “drawwithme”.

5. Own hangout :

Node.js with modern web API’s like webRTC which is supported by many web-browsers, we can create an app like Hangout. One of the best example is Talky.io.

6. Food Ordering App 

In the event that you are in the providing food industry, this is an application that can enable you to serve your customers better. You can make an application with Node.js that will make it feasible for your customers to put in their requests continuously. Your customers won’t need to influence calls or line at your shop to get what they to require. You can likewise keep close contact with your customers with such an application.

7. Gaming App 

Computer games are a most loved take a break for many people. With Node.js, you can make your own particular diversion applications and dependably run them progressively on web programs. After the production of such an application, you can stream your favored computer game and play it on your program. The site turns out to be incredibly intelligent taking into consideration many individuals to visit the site and play at any one time.

By seeing the above examples, I think you got some idea about node.js and what capabilities node.js provides you to do amazing things. So, start creating your own apps and make this world a better place.

Let us know what you are thinking to create using node.js in the comments section below.


Shreyansh

Android Developer

Leave a Reply