Categories
Node JS

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

Categories
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 […]

Categories
Node JS

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

Categories
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 […]

Categories
Express.js

Express js – Zip and download files

Categories
Node JS

Node js – Download files from Azure Storage to local File system.

Categories
Express.js

Express js – Upload images to Azure Blob Storage

Categories
Express.js

Express js upload and save base64 image into File System

Categories
Node JS

How to create a envelope in Docusign using Node Js

Categories
Node JS

How to build APIs using hapi.js in Node.js

By reading this tutorial you can build RESTful APIs using Node, hapi.js, and Sequelize ORM. We gonna use the different HTTP methods during the REST API development, quick introduction to each method and route details along with the description of each endpoint you can find in the below table. # Route Method Description 1 /todos […]

Categories
Node JS

Merging PDFs using Nodejs and ghostscript

In this tutorial, We will show you how you can use Ghostscript with NodeJs to merge multiple PDF files into single file. Using Ghostscript, it is possible to merge multiple PDF files into a single PDF file with a single command from your terminal or command line. Install Ghostscript Type the command sudo apt-get install […]

Categories
Node JS

How to SendGrid send email with node from terminal

In this post, I am gonna share code snippets which will trigger email along with file content to the given email address usign SendGrid and it will run on top of node js. Create a folder called emailTrigger and issue npm init –yes, it will create a file called packagejson file. Now install @sendgrid/mail library […]

Categories
Express.js

Azure CSP – Partner Center authentication with Node JS

In this post, I will show you Azure CSP partner center authentication with Node JS. We gonna use express JS as an application framework and the Request module to make HTTP calls to Azure REST APIs. Initiate the project with npm init –yes, it will create a file called package.json in the current folder. Now […]

Categories
Express.js

Send Email using SendGrid in Express.JS application

In this arti­cle, I will demon­strate a sim­ple exam­ple of send­ing emails using SendGrid in Express/ Node.js. Fortunately sending emails in express/node js pretty easy with SendGrid using @sendgrid/mail npm package. For sending HTML emails we are going to use template engine called pugjs, this project was formerly known as Jade. Create package.json file and […]

Categories
Express.js

Implement role based access control, JWT, Express.js , Node.js

In this post, We gonna build an access control layer using express-jwt-permissions for express based application. ACL will keep users from accessing information not meant for them. We gonna create the express.js application to role-based access control example. let’s create a folder called aclJWTExpress After creating, change the directory to aclJWTExpress Now initialize the project […]