Tag: node

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

How to execute shell commands in Node.js?

Introduction If you ever wanted to run system commands in Node.js? Obviously, the answer is a big “Yes”. If You want to reduce your workload then you have to automate stuff in your production environment. One way to use Bash script to automate things but what will happen if you are not good at Bash

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

Advantages of Node.js

Introduction: Node.js is a powerful and popular open-source JavaScript runtime environment that enables developers to create server-side applications with ease. Ryan Dahl created it in 2009, and since then it has become one of the most widely used web development frameworks. Node.js is based on an event-driven, single-threaded architecture which makes it lightweight and efficient

Read more

Efficient File Uploads in Express: Best Practices and Tips

Introduction To handle file uploads in an Express.js application, you can use the multer middleware. multer provides an easy way to handle multipart/form-data and process file uploads. Here’s an example of how to handle file uploads using multer in Express: In this example, the upload.single('file') middleware is used to handle a single file upload. The

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