{"id":39526,"date":"2018-11-15T14:59:13","date_gmt":"2018-11-15T12:59:13","guid":{"rendered":"https:\/\/blog.superhosting.bg\/?p=39526"},"modified":"2023-02-09T18:37:17","modified_gmt":"2023-02-09T16:37:17","slug":"node-js-intro","status":"publish","type":"post","link":"https:\/\/blog.superhosting.bg\/en\/node-js-intro.html","title":{"rendered":"What is Node.js?"},"content":{"rendered":"<blockquote><p>&#8230;Fast, high-performance, resource-efficient, flexible, open source, providing real-time effective communication, having huge community of supporters, fans and modules and last, but not least: making developers happier and enhancing their productivity&#8230;<\/p><\/blockquote>\n<p>This description gives answer to the question&nbsp;\u201cWhat is Node.js?\u201d on behalf of the users who work with it. In fact, Node.js represents the &#8220;box&#8221;, as its &#8220;contents&#8221; is the source of all advantages &#8211; the <a title=\"\" href=\"https:\/\/en.wikipedia.org\/wiki\/JavaScript\" target=\"_blank\" rel=\"noopener\">JavaScript<\/a> programming language.<\/p>\n<h4 class=\"h4-gray01\"><strong>Node.js is a server platform for executing JavaScript code<\/strong><\/h4>\n<p><a title=\"\" href=\"https:\/\/en.wikipedia.org\/wiki\/Node.js\" target=\"_blank\" rel=\"noopener\">Node.js<\/a>&nbsp;(or just Node) is a server application which provides cross-platform JavaScript <a title=\"\" href=\"https:\/\/en.wikipedia.org\/wiki\/Runtime_system\" target=\"_blank\" rel=\"noopener\">runtime environment<\/a>, but it is not a programming language. Node.js enables the execution of JavaScript server-side as usually this happens in the browser. When a certain application is built with Node.js this means it has been developed with JavaScript and executed by Node.js.<\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">And any developer who loves JavaScript programming will feel in his own way with Node.js \ud83d\ude42<\/span><\/span><\/p>\n<p>Usually the JavaScript programming language is used for <a title=\"\" href=\"https:\/\/en.wikipedia.org\/wiki\/Front-end_web_development\" target=\"_blank\" rel=\"noopener\">front-end<\/a> development in websites to add interactive features to static HTML content.&nbsp;JavaScript for the front-end of the website\/application is executed in the browser through a special JavaScript interpreter\/<a title=\"\" href=\"https:\/\/en.wikipedia.org\/wiki\/JavaScript_engine\" target=\"_blank\" rel=\"noopener\">JavaScript engine<\/a>.<\/p>\n<p>In 2009 such a JavaScript engine was placed and used server-side. Development was originally written by <a title=\"\" href=\"https:\/\/en.wikipedia.org\/wiki\/Ryan_Dahl\" target=\"_blank\" rel=\"noopener\">Ryan Dahl<\/a> as the project was named Node.js. Node.js\u2019 driving force is <a title=\"\" href=\"https:\/\/en.wikipedia.org\/wiki\/Chrome_V8\" target=\"_blank\" rel=\"noopener\">Google&#8217;s JavaScript V8 engine<\/a>. Dahl demonstrated the project at the inaugural European JSConf on November 8, 2009. At that event he presented the mechanism of his project &#8211; a working process, driven by callback events and a non-blocking programming method for asynchronous I\/O.<\/p>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span> In the following years the interest to Node.js had gradually increased measured by the gradually rising number of queries on Google. As of 2018 the interest towards this technology has grown from 0 to 74 points as 100 points is the maximum. Another interesting fact is that React.js\u2019 popularity outgrew Node.js in November 2017 and it kept growing, reaching the maximum possible number of points in Google Trends.<br \/>\n\u21d2 Node.js + React.js &#8211; Google Trends popularity research from 2009 to 2018<\/div>\n<h4 class=\"h4-gray01\"><strong>Development of Node.js Applications and JavaScript Technologies<\/strong><\/h4>\n<p>You can use Node.js by installing it on a server or on your PC. Usually Node.js is installed server-side so that the applications developed for it can be accessible on the web, for example, on a <a title=\"Virtual Private Servers | SuperHosting.BG\" href=\"https:\/\/en.superhosting.bg\/web-hosting-page-servers-vps.php\" target=\"_blank\" rel=\"noopener\">private&nbsp;virtual server<\/a>. Node.js can work with all types of server technologies such as Apache, Nginx and the different types of databases&nbsp;NoSQL (MongoDB, Redis), SQL (MySQL) and many more. There is a wide range of tools and technologies to be used with Node.js.<\/p>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span> Node.js occupies one of the last places in the most popular web servers ranking. Node.js is not used as a standalone web server, but mainly combined with the leaders in the ranking &#8211; Apache and Nginx.<br \/>\n\u21d2 <a title=\"\" href=\"https:\/\/w3techs.com\/technologies\/overview\/web_server\" target=\"_blank\" rel=\"noopener\">https:\/\/w3techs.com\/technologies\/overview\/web_server\/all<\/a><\/div>\n<p><strong>Node.js is used for front-end, back-end and full-stack web development:<\/strong><\/p>\n<ul class=\"listgsquare\">\n<li><strong>Front End JavaScript<\/strong> <strong>technologies<\/strong>: Front-End development concerns everything users view in a browser or application. It is responsible for the appearance, design and overall UX. Few technologies are mainly used in this field of web development: HTML, CSS and JavaScript. Some of the most popular JS technologies (JS frameworks&nbsp;and&nbsp;JS libraries) used for user interface development are: <a title=\"\" href=\"https:\/\/reactjs.org\" target=\"_blank\" rel=\"noopener\">React<\/a>, <a title=\"\" href=\"https:\/\/angularjs.org\" target=\"_blank\" rel=\"noopener\">Angular<\/a>, <a title=\"\" href=\"https:\/\/vuejs.org\" target=\"_blank\" rel=\"noopener\">Vue<\/a>, <a title=\"\" href=\"https:\/\/emberjs.com\/\" target=\"_blank\" rel=\"noopener\">Ember<\/a> and <a title=\"\" href=\"http:\/\/backbonejs.org\" target=\"_blank\" rel=\"noopener\">Backbone<\/a>.<br \/>\nA very popular application currently is an example of how the React.js technology can be used &#8211; the new <a title=\"Testing Gutenberg for the Existing Website Content in WordPress\" href=\"https:\/\/blog.superhosting.bg\/en\/test-gutenberg-for-existing-content.html\" target=\"_blank\" rel=\"noopener\">WordPress&nbsp;editor Gutenberg<\/a> as it has been fully developed by using React.js JavaScript.<\/p>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span> Angular, React and several other JS frameworks are among the top ranked web frameworks on GitHub and Stack Overflow.<br \/>\n\u21d2 <a title=\"\" href=\"https:\/\/hotframeworks.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/hotframeworks.com<\/a><\/div>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span>Back-end technologies are difficult to detect since some statistics use the method for scanning the website source code. For this reason in the most popular JS technologies ranking there is abundance of technologies which allow source code detection (front-end). jQuery occupies the first place in w3techs.com rankings, as it\u2019s followed by Bootstrap, Modernizr and Underscore.<br \/>\n\u21d2 <a title=\"\" href=\"https:\/\/w3techs.com\/technologies\/overview\/javascript_library\" target=\"_blank\" rel=\"noopener\">https:\/\/w3techs.com\/technologies\/overview\/javascript_library\/all<\/a><\/div>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span> <a title=\"\u041a\u0430\u043a\u0432\u043e \u0435 jQuery \u0438 \u0437\u0430 \u043a\u0430\u043a\u0432\u043e \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430? | Blog SuperHosting.BG\" href=\"https:\/\/blog.superhosting.bg\/jquery.html\" target=\"_blank\" rel=\"noopener\">jQuery<\/a> leads the statistics of the most common JS libraries.<br \/>\n\u21d2 <a title=\"\" href=\"http:\/\/libscore.com\/#libs\" target=\"_blank\" rel=\"noopener\">http:\/\/libscore.com\/#libs<\/a><\/div>\n<\/li>\n<li><strong>Back End&nbsp;JavaScript technologies<\/strong>: Back-End development concerns the server-side of the application as well as the communication with the database and end users. It gives answer to the question&nbsp;\u201cHow does the website\/application work?\u201d For back-end JavaScript development mainly the Node.js&nbsp;server platform as well as the JS frameworks Express.js&nbsp;and <a title=\"\" href=\"https:\/\/socket.io\" target=\"_blank\" rel=\"noopener\">Socket.io<\/a> are used.<\/li>\n<li><strong>Full Stack&nbsp;JavaScript technologies<\/strong>: a combination of the back-end and front-end development. Frameworks used: <a title=\"\" href=\"https:\/\/www.meteor.com\" target=\"_blank\" rel=\"noopener\">Meteor<\/a>, <a title=\"\" href=\"http:\/\/rendrjs.github.io\" target=\"_blank\" rel=\"noopener\">Rendr<\/a>, D<a title=\"\" href=\"https:\/\/derbyjs.com\" target=\"_blank\" rel=\"noopener\">erby.js<\/a> and others.<br \/>\nThe most common combination of Node.js and other server-side back-end as well as front-end technologies used for web development are: MEAN &#8211; MongoDB, Express.js, Angular.js, Node.js as well as MERN &#8211; MongoDB, Express.js, React.js, Node.js. Those are packages of full-stack technologies.<\/li>\n<\/ul>\n<p>Node.js can often be used for high speed-real-time applications. Large companies use Node.js as they integrate it in a certain big application or service. Some of the Node.js users are: PayPal, Pinterest, Netflix, Mozilla, Amazon, Symantec, Github, Coursera, Flickr, WordPress, LinkedIn, Ebay, Nasa, Airbnb, Trello, Yahoo, Shutterstock and&nbsp;<a title=\"\" href=\"https:\/\/foundation.nodejs.org\/wp-content\/uploads\/sites\/50\/2017\/11\/Nodejs_2017_User_Survey_Exec_Sum.pdf\" target=\"_blank\" rel=\"noopener\">many more<\/a>.<\/p>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span> React and Node.js rank among the top three in the GitHub contribution ranking.<br \/>\n\u21d2 <a title=\"\" href=\"https:\/\/blog.github.com\/#popular-repository-topics\" target=\"_blank\" rel=\"noopener\">https:\/\/blog.github.com\/#popular-repository-topics<\/a><\/div>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span> Again this year JavaScript is the most commonly used programming language on Stack Overflow.<br \/>\n\u21d2&nbsp;<a title=\"\" href=\"https:\/\/insights.stackoverflow.com\/survey\/2018#technology-programming-scripting-and-markup-languages\" target=\"_blank\" rel=\"noopener\">https:\/\/insights.stackoverflow.com\/survey\/2018#technology-programming-scripting-and-markup-languages<\/a><\/div>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span> Node.js is the most popular among developers in Stack Overflow.<br \/>\n\u21d2 <a title=\"\" href=\"https:\/\/insights.stackoverflow.com\/survey\/2018#technology-frameworks-libraries-and-tools\" target=\"_blank\" rel=\"noopener\">https:\/\/insights.stackoverflow.com\/survey\/2018#technology-frameworks-libraries-and-tools<\/a><\/div>\n<p>Node.js is a suitable solution for applications with intensive&nbsp;I\/O bound, but not suitable for apps with intensive CPU bound. This is due to the fact that&nbsp;heavy CPU usage <a title=\"\" href=\"https:\/\/codeburst.io\/cpu-intensive-node-js-part-1-1218b102e5ec\" target=\"_blank\" rel=\"noopener\">can block the Node.js processes<\/a>.<\/p>\n<h4 class=\"h4-gray01\"><strong>NPM &#8211; Node Package Manager<\/strong><\/h4>\n<p><a title=\"\" href=\"https:\/\/www.npmjs.com\" target=\"_blank\" rel=\"noopener\">NPM<\/a> is a JavaScript Package Manager. Packages might be single files, JavaScript libraries or far more complicated library collections such as full-stack JavaScript frameworks like Express.js and others.<\/p>\n<p>NPM enables you to install and manage packages for a certain Node.js project. Currently there are over 700.000 packages in the NPM repository.<\/p>\n<p>The NPM \u041canager consists of a cli (command line interface) client and online database of packages, called NPM Registry. The NPM cli tool is installed on the server where Node.js is also accessible. Then a package from the NPM Registry can be installed with a single command in the console.&nbsp;For example installing Express.js is performed by using:<\/p>\n<div class=\"codecommandgr\">npm install express<\/div>\n<p>Those packages containing a JavaScript code facilitate Node.js project development.<\/p>\n<div class=\"text-note-small\"><span style=\"font-size: 26px; float: left; padding: 0 6px 0 0;\">\ud83d\udcca<\/span> Node.js has he most modules compared to any other technology. With Node.js you can use a Package Manager called NPM which consists of libraries, modules, library collections which can be installed to facilitate project development. Currently there are hundreds of thousands of NPM modules.<br \/>\n\u21d2 <a title=\"\" href=\"http:\/\/www.modulecounts.com\" target=\"_blank\" rel=\"noopener\">http:\/\/www.modulecounts.com<\/a><\/div>\n<h4 class=\"h4-gray01\"><strong>Node.js Hosting<\/strong><\/h4>\n<p>You can use Node.js for all services offered by SuperHosting.BG.<\/p>\n<ul class=\"listgok\">\n<li><strong>Shared Hosting:<\/strong> Node.js can be used upon ordering the&nbsp;<a title=\"Hosting plan SuperHosting | SuperHosting.BG\" href=\"https:\/\/en.superhosting.bg\/web-hosting-compare-hosting-plans.php\" target=\"_blank\" rel=\"noopener\">SuperHosting plan<\/a>. You will be able to upload a Node.js application right after the hosting service has been activated and the account is created. You can launch a Node.js application with minimum efforts and actions and choose one of Node.js\u2019 latest versions.&nbsp;cPanel enables you to easily create a special Node.js virtual environment, as you can manage this environment through an intuitive graphic interface. There you can change the environment settings, the Node.js version you use, enable, disable and remove applications. MySQL (MariaDB), PostgreSQL or SQLite are among the most widely used relational databases which you can use for your application.<\/li>\n<li><strong>Virtual Server:<\/strong> Upon the&nbsp;<a title=\"Virtual Private Servers | SuperHosting.BG\" href=\"https:\/\/en.superhosting.bg\/web-hosting-page-servers-vps.php\" target=\"_blank\" rel=\"noopener\">virtual server&nbsp;service<\/a> you can install all necessary server applications and perform all system settings by yourself. Node.js shall be installed and configured. You will also have to install the technologies that work together with Node.js. This service may require some more time before it is possible to run Node.js. You might need the help of a sysadmin or in-depth knowledge in server administration to be able to support and manage this. With this service you will be enabled to use all types of server applications and technologies such as non-relational databases such as MongoDB and others.<\/li>\n<li><strong>Managed VPS<\/strong>: This is a&nbsp;<a title=\"Managed VPS | SuperHosting.BG\" href=\"https:\/\/en.superhosting.bg\/web-hosting-common-managed-vps.php\" target=\"_blank\" rel=\"noopener\">managed virtual server<\/a> that combines the best of both worlds &#8211; easy management and technical support provided as for shared hosting together with the independence of a virtual server. Upon the Managed VPS service we perform the system administration activities. Node.js is supported for all Managed VPS servers as it is included in the Pro, Mega and Business hosting plans.<\/li>\n<\/ul>\n<div class=\"boxorangedashedborder01\">\n<p>You can get more interesting information about the world of JavaScript technologies right from the source &#8211; the people who are involved in the development of JavaScript applications, at the conference&nbsp;<a title=\"Become part of the fourth edition of js.talks(\u201cBulgaria\u201d);\" href=\"https:\/\/blog.superhosting.bg\/en\/js-talks-bulgaria-2018.html\" target=\"_blank\" rel=\"noopener\">js.talks (\u201cBulgaria\u201d)<\/a>.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When a certain application is built with Node.js this means it has been developed with JavaScript and executed by Node.js.<\/p>\n","protected":false},"author":16,"featured_media":62823,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[110],"tags":[],"class_list":{"0":"post-39526","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-superhosting-technology-en"},"aioseo_notices":[],"modified_by":"\u041c\u0430\u0434\u043b\u0435\u043d\u0430 \u041c\u0435\u0442\u043e\u0434\u0438\u0435\u0432\u0430","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/39526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/comments?post=39526"}],"version-history":[{"count":9,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/39526\/revisions"}],"predecessor-version":[{"id":68332,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/39526\/revisions\/68332"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/media\/62823"}],"wp:attachment":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/media?parent=39526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/categories?post=39526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/tags?post=39526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}