Tag: nodejs

How to create CRUD application using gRPC in Node.js.

Creating a gRPC CRUD (Create, Read, Update, Delete) application in Node.js involves several steps. Below, I’ll guide you through creating a simple example of a gRPC-based CRUD application using Node.js: In the other window, run the client: You should see output indicating that the operations (Create, Read, Update, Delete) have been performed. This is a

Read more

Preventing SQL Injection in DynamoDB: Best Practices for Secure Node.js Applications

DynamoDB is a NoSQL database provided by Amazon Web Services (AWS) that doesn’t use SQL for querying data. As a NoSQL database, DynamoDB is designed to handle structured data with flexible schemas and doesn’t support traditional SQL injection vulnerabilities. However, it’s important to note that NoSQL databases like DynamoDB can still be vulnerable to injection

Read more

Building REST APIs with Node.js: A Practical Guide

Introduction Building a REST API is a common requirement for modern web applications. In this blog, we will explore how to create a REST API using Node.js. We’ll cover the basics of REST, design principles, and step-by-step implementation using popular Node.js frameworks. By the end of this guide, you’ll have a solid understanding of building

Read more

Testing and Debugging Node.js Applications

Introduction Testing and debugging are essential steps in the development process of any software application, including Node.js applications. Proper testing ensures that the code is functional and behaves as expected, while debugging helps to identify and fix any issues that may arise during the development process. In this article, we will discuss some best practices

Read more

DNS module in Node.js

Introduction: DNS module is a core module of Node.js that provides developers with an interface to the Domain Name System (DNS). It allows you to do things like get and set DNS records, as well as resolve hostnames and IP addresses.  The DNS module is important because it helps you communicate with name servers around

Read more

RSS reader in Node.js

Introduction: An RSS (Really Simple Syndication) feed is an online file that contains information about every piece of content a website has published. The information includes a summary, content, publication date, author, publisher name, link and other metadata. Almost every news website provides its RSS feed which can be integrated in other websites. Generally, an

Read more

HTTP Rest Client in Node.js: Everything You Need to Know

In a world where everything is interconnected, the network has become one of the most important pieces of infrastructure in our lives. And within that network, APIs have become one of the most valuable resources we have.  APIs are how businesses expose their internal data and functionality to the outside world, so any developer who

Read more

How to fix: Express.js request body is undefined.

Introduction If you are using the latest express version in Node.js then you may face the above exception while accessing HTTP request body. In the earlier versions of express, there was no such type of issue in the library. In the update of July2020, express.bodyParser() is no longer bundled as part of express. Therefore User need

Read more

How to create symlinks in Node.js? Symbolic link with Node.js

Introduction A symbolic link (also symlink or soft link) is a term for any file that contains a reference to another file or directory in the form of an absolute or relative path. Node.js built-in fs module provides APIs to create symlink. fs.symlink() method is used to create a symlink to the given path asynchronously. fs.symlinkSync() method is used to

Read more

How to execute shell commands in Node.js?

Introduction: Node.js child_process module is a powerful tool for executing other programs from a Node.js script. It provides an easy way to interact with external programs, enabling us to do things like execute shell commands, spawn child processes, and handle stdio streams. In this article, we will discuss the child process module in detail and

Read more

Please disable your adblocker or whitelist this site!

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site