Featured
-
Top 10 Template Engines for JavaScript
What is a Template engine? Template Engines are
by nishant.mishra -
jQuery Accordion
Hello readers! In this Blog we will gain knowled
by vishwanath.rana -
How to make Numbered and bulleted list in HTML Editor with JavaScript
Hello all, Working with HTML Editor we wanted t
by gaurav.gautam -
How to hide particular div with just one click?
Hi, you want a condition in which the particula
by abhishek.tiwari.458 -
How to Create and Retrieve Array in Javascript?
If you want to store multiple values in a single v
by siddharth.shahi
Tags
Node.js Promises
As we all know In node.js many times we will use asynchronous callback. There are n number of situation where we want to use nested callback where we want to use one callback result to another asynchronous callback. The best way to do that task i...
Node.js Event loop
The event loop in Node.js works or runs in a single thread. That shows the application developer the code he/she will write that will be checked on a single thread. There are n number of threads which node js uses itself through libuv. But we don...
How to make an http POST request in node.js
I have a situation in which I have to make an post http request to another server and get the http request data(If it exist) and then on the basis of data do further calculation. I have to also put the check that if there is any delay on th...
Node js Events
As we all know Node.js is a single threaded application in which we will heavily use event and callback. Events modules allows you to emits and handle events. In node.js there are n number of in-built modules that has the ability to emit or broad...
Node.js I/O blocking and I/O non blocking.
As we all know Node.js is a single threaded application in which we will heavily use event and callback. But before starting event loop we should know about events and cost of I/O & non-blocking I/O.So starting with event driven programming.
...
Chapter 3: Authentication using node.js(passport.js) and mongoDb
As we all know authentication plays an important role in every site. Here In this blog I am explaining how we will authenticate our site in node.js as a backend and mongoDb as a database. To authenticate I am using passport.js which will help to ...
How to send data to another server in node.js
I have a situation in which I want to fetch data from another server. In node.js it is possible to send data to another server. For achieving this task we will use http module. To explain this I have written the code below .
Example:
...
Node.js: How to perform endless loop with async module?
I have a situation where I want to run an endless loop and I have to get data from there. For this, I have to make a Http call and then put the http response in a database, In each iteration, I have to wait for some second.
To solve this...