What is Node.js used for in simple terms

JavaScript's rising prevalence has carried with it a lot of changes, and the substance of web improvement today is significantly extraordinary. The things that we can do on the web these days with JavaScript running on the worker, just as in the program, were difficult to envision only quite a while prior or were epitomized inside sandboxed situations like Flash or Java Applets.

Before delving into Node.js arrangements, you should find out about the advantages of utilizing JavaScript over the stack which binds together the language and information group (JSON), permitting you to ideally reuse engineer assets. As this is more advantage of JavaScript than Node.js explicitly, we won't talk about it much here. However, it's a key favorable position to fusing Node in your stack.

In one sentence: Node.js sparkles continuously web applications utilizing push innovation over WebSockets. What is so progressive about that? All things considered, after more than 20 years of stateless-online on the stateless solicitation reaction worldview, we at long last have web applications with constant, two-way associations, where both the customer and worker can start correspondence, permitting them to trade information openly. This is as a conspicuous difference to the run of the mill web reaction worldview, where the customer consistently starts correspondence. Also, it's totally founded on the open web stack (HTML, CSS and JS) running over the standard port 80.

Some of the most useful npm modules today are:

  • express
  • hapi
  • connect
  • http://socket.io and sockjs
  • pug (formerly Jade)
  • mongodb and mongojs
  • redis
  • forever
  • bluebird
  • moment

Comments