Connect to Salesforce with Node.js

In this post, we gonna make a connection to Salesforce with Node.js and we will update the Salesforce Objects. We will use node-salesforce npm module to authenticate with Salesforce. So let’s install it. Let initialize the project with npm init –yes and isntall node-salesforce as shown below.

Once you install the dependency, let create… Continue reading Connect to Salesforce with Node.js

Generate a PDF from HTML with puppeteer

In this post, we gonna use Puppeteer to generate PDF files from HTML. With Puppeteer we can also generate screenshots. What is Puppeteer? The documentation says: Puppeteer is a Node library that provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer runs headless by default but can be configured to… Continue reading Generate a PDF from HTML with puppeteer

Word document placeholder replacement with Node js

In this post, we gonna see how we can use Docxtemplater library to replace placeholders in the Word Document in Node js based projects.  Let’s initialize the project with npm init –yes command. Now install the Docxtemplater the module as shown below: Now create a file called processWordDoc.js and place the following code. Now execute the… Continue reading Word document placeholder replacement with Node js

How to integrate sonar for a Node JS project?

In this post I will show you SonarQube integration steps for Node based projects. SonarQube is an Open Source Software for static code scanning to discover potential vulnerabilities, bugs and code smell. We gonna use Docker to run the SonarQube server on Docker engine so please install it and have Docker up and running on… Continue reading How to integrate sonar for a Node JS project?

How to integrate the CardConnect payment with Node JS

This tutorial shows how we can integrate the CardConnect payment gateway within your nodeJs based projects. We gonna use axios npm module to make request to CardConnect APIs. Here are simple steps to access the CardConnect APIs and make payments using CardConnect.Authorization Step 1: Initialize the project with npm init command. It will create a… Continue reading How to integrate the CardConnect payment with Node JS

Node js – Azure blob storage generate temporary public url for private file.

This article demonstrates how to generate a temporary public URL to access a private file which resides inside the Azure blob storage which has private access. We gonna use NodeJS and Azure’s official npm module to generate a temporary public URL for a private file using shared access signatures (SAS). Let’s create a directory called… Continue reading Node js – Azure blob storage generate temporary public url for private file.