{"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:\/\/www.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\">Google Chrome&#8217;s JavaScript V8 Engine.<\/a><\/p>\n<p>Find out <a href=\"https:\/\/www.youtube.com\/watch?v=_73HMegzpqM\">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\"> 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":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-node-js-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Node.js - Introduction - Node.js Tutorials<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node.js - Introduction - Node.js Tutorials\" \/>\n<meta property=\"og:description\" content=\"Welcome to the first lesson in Node.js. In this first lesson, we would cover the following topics: &nbsp; Features of Node.js\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/\" \/>\n<meta property=\"og:site_name\" content=\"Node.js Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-19T14:18:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-22T07:01:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/03\/Tutorial-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"934\" \/>\n\t<meta property=\"og:image:height\" content=\"536\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\"},\"headline\":\"Node.js &#8211; Introduction\",\"datePublished\":\"2019-03-19T14:18:20+00:00\",\"dateModified\":\"2019-09-22T07:01:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/\"},\"wordCount\":27,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2019\\\/03\\\/Tutorial-1.jpg\",\"articleSection\":[\"Node.js Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/\",\"name\":\"Node.js - Introduction - Node.js Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2019\\\/03\\\/Tutorial-1.jpg\",\"datePublished\":\"2019-03-19T14:18:20+00:00\",\"dateModified\":\"2019-09-22T07:01:12+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2019\\\/03\\\/Tutorial-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2019\\\/03\\\/Tutorial-1.jpg\",\"width\":934,\"height\":536},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/01-node-js-introduction\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Node.js &#8211; Introduction\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#website\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/\",\"name\":\"Node.js Tutorials\",\"description\":\"Best Node.js Tutorials\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/author\\\/kindsonthegenius-3\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Node.js - Introduction - Node.js Tutorials","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/","og_locale":"en_US","og_type":"article","og_title":"Node.js - Introduction - Node.js Tutorials","og_description":"Welcome to the first lesson in Node.js. In this first lesson, we would cover the following topics: &nbsp; Features of Node.js","og_url":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/","og_site_name":"Node.js Tutorials","article_published_time":"2019-03-19T14:18:20+00:00","article_modified_time":"2019-09-22T07:01:12+00:00","og_image":[{"width":934,"height":536,"url":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/03\/Tutorial-1.jpg","type":"image\/jpeg"}],"author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/#article","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5"},"headline":"Node.js &#8211; Introduction","datePublished":"2019-03-19T14:18:20+00:00","dateModified":"2019-09-22T07:01:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/"},"wordCount":27,"commentCount":1,"image":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/03\/Tutorial-1.jpg","articleSection":["Node.js Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/","url":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/","name":"Node.js - Introduction - Node.js Tutorials","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/#primaryimage"},"image":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/03\/Tutorial-1.jpg","datePublished":"2019-03-19T14:18:20+00:00","dateModified":"2019-09-22T07:01:12+00:00","author":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5"},"breadcrumb":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/#primaryimage","url":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/03\/Tutorial-1.jpg","contentUrl":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/03\/Tutorial-1.jpg","width":934,"height":536},{"@type":"BreadcrumbList","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/01-node-js-introduction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kindsonthegenius.com\/nodejs\/"},{"@type":"ListItem","position":2,"name":"Node.js &#8211; Introduction"}]},{"@type":"WebSite","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#website","url":"https:\/\/www.kindsonthegenius.com\/nodejs\/","name":"Node.js Tutorials","description":"Best Node.js Tutorials","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kindsonthegenius.com\/nodejs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"url":"https:\/\/www.kindsonthegenius.com\/nodejs\/author\/kindsonthegenius-3\/"}]}},"_links":{"self":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":4,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/21\/revisions\/26"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/media\/22"}],"wp:attachment":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}