Nodejs Archives

NodeJs ZLIB – Zip and Unzip files using Nodejs

Author - Webner
|
0 Comments
|

Compression and decompression of files also mean to zip or unzip files using Nodejs. It is implemented in Nodejs using the Zlib module.
We can access Zlib using the following command.
const zlib = require(‘zlib’);
Zip and Unzip of files can be done by piping the source stream data into Read more…

Creating Rest API in Node Js

Author - Webner
|
1 Comment
|

Rest API

Rest API is an application program interface, that uses GET, POST, PUT, DELETE data. It is referred to as a REPRESENTATIONAL STATE TRANSFER (RESTful) web service.

Creating the API

Creating Rest API in Node Js firstly needs to make a directory(mkdir restfulapi) to Read more…

Introduction to socket.io using node.js (Websockets)

Author - Mukesh Godara
|
0 Comments
|

What are WebSockets & how are they different from traditional HTTP/HTTPS protocols?

In conventional HTTP protocols, a client(a web browser) sends an HTTP request to a server and a TCP connection is been made & as soon as the client gets server response, the TCP connection will be Read more…

Creating API’s with Node.js GraphQL

Author - Varun Chopra
|
0 Comments
|

Introduction

In this article, my aim is to present a quick guide on how to create Node.js GraphQL API. With a well-structured API, it is possible to have a solid, maintainable, and scalable API that can serve multiple kinds of front-end applications.

GraphQL is a Read more…

How to Instantiate a Web Server in Node js

Author - Neelam Thakur
|
0 Comments
|

How to Create and Access a Web Server in Node js

To access web pages of any web application we need a web server. The web server handles all http requests for the web application.

Node.js framework is mostly used to create server based applications Read more…

Nodejs callback with example

Author - Tanuj Sharma
|
0 Comments
|

Nodejs callback

A callback is a function that can be called on the completion of a given task to prevent blocking. As a result of it other code will run without waiting for a task to complete. This feature makes node.js highly scalable as it Read more…