How to Use Session in Node.js

Websites runs on HTTP Protocol. HTTP Protocol is a stateless protocol. It means when a HTTP Request completes the browser and server communication stops. So, We use the session to maintain and remember the user’s state at server. We can …

How to use mongodb in Node.js

Mongodb is a NoSQL Database. The data stored in mongodb is in JSON-like Documents. The Collection in Mongodb is called a Table. In Mongodb we can create, update, delete or list the documents, projection, sort() and limit() methods, create a …

How to create REST API in Nodejs?

A REST API (Web API) is an application programming interface that allows us for interaction with RESTful web services or app services. REST stands for representational state transfer. It was created by computer scientist Roy Fielding. Here we will create …