Hey everyone! Welcome to the best fundamental tutorial on Node JS. I would like to “foolishly” assume something about the students or developers, who take this course:
Okay, let’s dive deep into Node JS. When you head over to the Node JS website and find the introduction, you are faced with a page saying something like:
Node.js® is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
Well, that doesn’t make any sense, right? Either it’s too technical or it’s something that doesn’t help you understand what’s Node JS and how can this help you. This is not at all a user (or a newbie) friendly text to place in the home page of the website. Well, here’s what Node JS is:
A good thing about Node JS is, it helps not only build n-Tier applications, but also the whole three layers are written in JavaScript as well:
This way, you don’t need to learn multiple languages in the three tiers. You just need to know the syntax of one language, that’s JavaScript via Node JS.
So, why would you want to migrate to Node JS? You have a great enterprise application running in, say Ruby on Rails or PHP but you decided to switch it to Node JS. The first thing is, it’s insanely popular, as it uses JavaScript. JavaScript is used by almost all the web developers and you cannot build a modern web application without JavaScript. This alone gives an advantage of not needing to learn another new programming language.
Another reason would be it’s extremely faster as it runs on V8 JavaScript Engine, which is Google’s open source high-performance JavaScript engine, written in C++ and used in Google Chrome, the open source browser from Google. The advantage is that it uses non-blocking code, as most of the Node JS functions are from standard library and they are asynchronous in nature. This way, when a program goes into an infinite loop, it will not block further code from executing.
Who likes writing the same code again and again? Node JS has a huge eco-system of open source packages that can be installed via an application that comes bundled with Node JS called Node Package Manager or npm. The community of developer base this has is humungous. Along with this, you can also use Node JS for writing real-time socket services such as a chat program, queueing system, push notifications, etc. through Web Sockets.
How is this course split up?
We have a small agenda to work our way through the application. We will be learning more of:
Hope the above three parts give you a basic idea of what we will be aiming to cover. This is going to be a complete end to end training from the basics till you get hands-on and create your own server. Using the knowledge gained, you will be able to create a nice and quick ToDo application similar to the one below:
We will be able to add things to the list, edit them, and delete them. I’ll be suggesting Sublime Text as the text editor to use for the tutorial and I hope you will enjoy working on it as it is a highly programmable free software (you may buy the license, but it’s not at all needed if you are learning). You can get Sublime Text from its official website at sublimetext.com/2.
I will be adding the assets for the whole training in GitHub public repositories. I’ll be releasing the assets as we go and not the final one, as this will suppress the learning excitement altogether. If you are curious, all that’s there in the final GitHub repository is just an image, a stylesheet and a HTML file. Nothing more.
Let’s start cracking with the code soon with the next post. Make sure you have the following ready for the next one:
Thanks to Praveen Kumar for being our guest writer this week.
We are a leading niche digital & tech recruitment specialist for the North East of England. We Specialise in the acquisition of high-performing technology talent across a variety of IT sectors including Digital & Technology Software Development.
Our ultimate goal is to make a positive impact on every client and candidate we serve - from the initial call and introduction, right up to the final delivery, we want our clients and candidates to feel they have had a beneficial and productive experience.
If you’re looking to start your journey in sourcing talent or find your dream job, you’ll need a passionate, motivated team of experts to guide you. Check out our Jobs page for open vacancies. If interested, contact us or call 0191 620 0123 for a quick chat with our team.
Follow us on our blog, Facebook, LinkedIn, Twitter or Instagram to follow industry news, events, success stories and new blogs releases.
Back to Blog