Node.js is extremly simple to install on all OS platforms. On Windows there is an installer, which guides you through the setup process. For Ubuntu users simply type the following command.
sudo apt-get install nodejs
Once the process has completed, you can verify, if Node.js is installed correctly by typing the following command.
Node Packager Manager (npm) is installed by default when you install Node.js. You can verify if npm is installed by typing the following command.
Now that Node.js is installed, you can write your first program. Open a text editor and write the famous Hello World program. Save the file as app.js.
To execute the code, cd into the directory where app.js is located in a terminal or command prompt and type the following command.
You should now see Hello World printed to the terminal. This example doesnt demonstrate a lot but in the next few articles you'll become to relaise just how powerful Node.js is.
Generating Web API Keys
If you're building a REST API, chances are you're going to need to generate secure random API keys. In this article, I explain how to use the Node.js crypto module to generate random secure API keys.29 May 2020 - 8 views
A simple port scanner to scan a range of ports.31 January 2020 - 239 views
An introduction to sorting algorithms.29 November 2019 - 346 views
Simple Http Server
This article explains how to create a simple HTTP server using Node.js without using any dependencies.04 September 2019 - 346 views
Reading From Console
Node.Js provides several ways to read user input from the terminal. This article explains how to use the process object to read user input.16 July 2019 - 252 views
Difference Between const, let And var
This article explains the difference between const, let and var.12 July 2019 - 218 views
Reading And Writing To Files
Reading and writing to a file is a common task most developers do. Thankfuly Node.js provides a simple to use package that can be used to read and write to a file synchronously or asynchronously.21 June 2019 - 234 views