CategoryIntermediate

Open weather map API NodeJS tutorial

O

In this Open weather map API NodeJS tutorial, we are going to see how we can create a weather api with node js that will give us weather forecasts of any city/country. Seems Amazing right? So, without any further delay, let’s get started. We are going to use Open Weather Map API for fetching forecasting details of about 200,000 plus cities. You can read more about Open Weather Map API at Open...

Promises in NodeJS part 2

P

In this part of the Promises tutorial, we will see the concept of Promises in more detail. This is the second part of the Promises in NodeJS tutorial and if you have not checked out the first part of this tutorial you can visit “Promises in NodeJS part 1”. Now let’s jump right in because we have got a lot to cover and learn in this part.  Dealing with nested promises In Promises, the “then”...

Redis with NodeJS tutorial

R

NodeJS is one of the most used Javascript backends in the market right now due to its ease of use and accessibility. In this Redis NodeJS tutorial, we will see how we can set up and use Redis with NodeJS. So, let us get started. What is redis and why do you need it? Redis is a popular data storage solution that works as a database, message broker, and cache. Due to its capability of storing the...

Event Emitter in Node JS

E

Nodes in Node JS emit many events regularly with the help of event emitter. For instance, whenever a peer user connects with net.Server, it emits an event. Similarly, fs.readStream emits an event upon file opening. All the event emitting objects are instances of events.EventEmitter. In the previous articles, we are learning about callbacks and events. In continuation of those tutorials, we will...

Event Loop in Node JS

E

We learned the callback concept of Node JS in the previous tutorial. This article is in the continuation of the previous and relates events with the event loop, so if you have not gone through the callback concept, it is recommended to grip on the concept first. How Node JS event work with callback? Node JS provides concurrency by using the callbacks and events. Although Node JS is a single...

Callback Function in Node JS

C

What is callback concept in Node JS? As we know that Node JS uses core concepts of JavaScript. The callback function is called after the completion of a specific task. During the Node JS development, a developer makes heavy use of the callback concept of Node JS. Asynchronous behavior of Node JS allows executing the code without waiting for the database query, any I/O operation within the...

Node Package Manager

N

In this article, you will learn about the Node Package Manager. Node JS is based on Javascript and its main worth is due to the large number of packages bundled in it. To manage all these packages, a separate service help NPM helps to perform the following two main functionalities. Functionalities of NPM in Node JS Provides command-line utility to install/uninstall node packages. Management of...

REPL in Node JS

R

Read Eval Print Loop (REPL) is a terminal in Node JS that provides an environment to perform operations. We will discuss these operations in the next section. Like Windows and Linux operating systems provides interactive shells and terminals to run commands. These commands are processed by the terminal and the terminal generates output. Similar is the case with the Node REPL terminal. This...

Tutor Network