PDFs are one of the common documents used in our everyday life. PDF means Portable Document Format, which is used to display documents in an electronic form independent of the software, hardware, or operating system they are viewed on. The main objective of a PDF is to share documents between different operating systems and devices.
PDFs are generally used everywhere some of they are Invoices, eBooks, application form, etc.
In today’s post, we are going to see 2 ways to create PDFs in Node.js.
1. Using Puppeteer.
2. PDF Make package
Puppeteer is a Node library that provides a high-level…
A promise is an object which either gives you a result or error in the future as soon as it completes the task. It is a popular design pattern used to handle asynchronous tasks in Node.js. It can take care of parallel/serial execution of many tasks along with their chaining rules. The promise structure also provides effective error-catching mechanisms.
The Promise.resolve() method returns a resolved Promise object with a given value. Depending upon a resolved promise value, it
1. returns promise if fulfilled with promise
2. returns a value if fulfilled with the value
Amazon SES is a simple email service used to send and receive emails from your verified domain using any application. AWS SNS is a Simple Notification Service used to notify/publish messages from an application to the subscribed endpoint user/server & customers. In my previous article(read here), I had discussed how to send email using AWS SES, in this article we are going to learn how to receive email using AWS SES & AWS SNS.
AWS SES is a Simple Email Service provided by AWS to send emails from any of the applications. AWS SNS is a Simple Notification Service used to notify the subscribed endpoint user/server & sending Messages to the customer. AWS Cloudwatch monitoring service gives you an insight into all the services/resources used by customers.
In today’s post, we will discuss the SES, SNS & Cloudwatch service of AWS using the simple demo. Where you can send email to the customer, notify the server about email delivery/bounce & see the logs of click, spam, bounce, etc of sent email using Cloudwatch. …
Excel sheets are popular in the business world as a de facto standard whether we as developers like it not. Sometimes, clients ask us to upload the excel sheet and all the data should be stored in the database. XLSX is a Node package that solves this problem. In this post, we are going to use busboy to process form data.
Step 1: Install the XLSX package using npm or bower
npm i --save xlsx
bower install js-xlsx
Step 2: Import…
AWS CloudWatch Logs enables you to centralize the logs from all of your systems, applications, and AWS services that you use, in a single, highly scalable service. You can then easily view them, search them for specific error codes or patterns, filter them based on specific fields, or archive them securely for future analysis.
By default, logs are kept indefinitely and never expire. You can adjust the retention policy for each log group, keep indefinite retention, or choose a retention period between one day and 10 years. You can use CloudWatch Logs to store your log data in highly durable…
In this post, we are going to learn about nested promises and alternatives to them. Without wasting any more time, let’s jump into nested promise.
Promises give you return statements and error throwing, which you lose with continuation-passing style. A nested promise is when you call child promise inside .then of parent promise and…
Docker is a popular open-source project written in go and developed by Dot cloud (A PaaS Company). It is basically a container engine that uses the Linux Kernel features like namespaces and control groups to create containers on top of an operating system. In today’s post, I will give you an intro to docker, along with some of the basic commands and FAQs.
Virtualization lets you split one system into multiple different sections which act like separate, distinct individual systems. This helps developers to run and host multiple OS on the hardware of a single physical server. Hypervisors provide overall…