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…
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…
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…
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 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…
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…