Tag: Nodejs
NodeJs ZLIB – Zip and Unzip files using Nodejs
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
Creating Rest API in Node Js
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
Introduction to socket.io using node.js (Websockets)
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
Creating API’s with Node.js GraphQL
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
How to Instantiate a Web Server in Node js
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
Nodejs callback with example
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