{"id":21,"date":"2019-03-19T14:18:20","date_gmt":"2019-03-19T14:18:20","guid":{"rendered":"https:\/\/www.kindsonthegenius.com\/nodejs\/?p=21"},"modified":"2019-09-22T07:01:12","modified_gmt":"2019-09-22T07:01:12","slug":"01-node-js-introduction","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/nodejs\/01-node-js-introduction\/","title":{"rendered":"Node.js &#8211; Introduction"},"content":{"rendered":"<p>Welcome to the first lesson in Node.js.<\/p>\n<p>In this first lesson, we would cover the following topics:<\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><a href=#t1\">Overview of Node.js<\/li>\n<li><a href=#t2\">Features of Node.js<\/li>\n<li><a href=#t3\">Where to Use Node.js<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t1\">1. Overview of Node.js<\/strong><\/h4>\n<p>Node.js is a JavaScript-based runtime. It is build on the <a href=\"https:\/\/www.youtube.com\/watch?v=_73HMegzpqM\" target=\"_blank\" rel=\"noopener\">Google Chrome&#8217;s JavaScript V8 Engine.<\/a><\/p>\n<p>Find out <a href=\"https:\/\/www.youtube.com\/watch?v=_73HMegzpqM\" target=\"_blank\" rel=\"noopener\">What is the V8 Engine<\/a>?<\/p>\n<p>Node.js was developed in 2009 by<a href=\"https:\/\/en.wikipedia.org\/wiki\/Ryan_Dahl\" target=\"_blank\" rel=\"noopener\"> Ryan Dahl,<\/a> an American Software Engineer.<\/p>\n<p>As mentioned, Node.js is a cross-platform, open-source runtime environment for building server-side and networking application. Node.js applications are actually written using JavaScript code. But then, you don&#8217;t need a different server to deploy and run the application. You can run the application using runtime provided by Node.js.<\/p>\n<p>So here is the power of Node.js: &#8216;<em>you can build and run applications without a server<\/em>&#8216;.<\/p>\n<p>Also, Node.js provides set of JavaScript modules that simplifies the process of developing web applications.<\/p>\n<p>&nbsp;<\/p>\n<p>A number of companies use Node.js in various projects. These include: Ebay, Yahoo!, Paypal, GoDaddy and Uber among others.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t2\">2. Features of Node.js<\/strong><\/h4>\n<p>Some key features of Node.js are provided below:<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Very Fast<\/strong>\u00a0&#8211; Application built on Node.js are very fast. This because of Node.js based on the Google Chrome&#8217;s V8 Engine. So compared to other tools, Node.js is relatively faster.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Asynchronous<\/strong> &#8211; This means that there is not waiting for response from server. So when a API call is made, the next call could also be made without waiting for the server&#8217;s response.Therefore we can say the Node.js APIs are non-blocking.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Easy to Get<\/strong> &#8211; You can easily get Node.js. This is because it is released based on the MIT licence.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Single-Threaded but Scalable<\/strong> &#8211; Node.js uses the model of single-thread with even-looping. In this way, the serve could respond in non-blocking manner.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>No Buffering<\/strong> &#8211; Data is not buffered in Node.js application.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t3\">3. Where to Use Node.js<\/strong><\/h4>\n<p>You can use Node.js in the following areas:<\/p>\n<ul>\n<li>I\/O bound applications with high user interaction<\/li>\n<li>Data Streaming applications<\/li>\n<li>Real-time data intensive applications<\/li>\n<li>Building JSON APIs or application based on JSON APIs<\/li>\n<li>Single Page Application<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>However, it is not recommended to use Node.js in CPU intensive applications.<\/p>\n<p>&nbsp;<br \/>\nTo learn how to set up Node.js, Watch the video below<br \/>\n<iframe loading=\"lazy\" width=\"100%\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/TI-cssPHWM0\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the first lesson in Node.js. In this first lesson, we would cover the following topics: &nbsp; Features of Node.js<\/p>\n","protected":false},"author":1,"featured_media":22,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-node-js-tutorials"],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":4,"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/21\/revisions\/26"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/media\/22"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}