Skip to main content

Posts

VueJS Sample To Generate QR Code Using VueQrcode

In this article, we are going to explore the 'vue-qrcode' plugin by integrating it into our sample VueJS application. Create A Vue Sample App: Let's use the following command to create a VueJS application. Command To Install Vue CLI Globally On Your System: npm run -g @vue/cli Command To Create Vue App: vue create your_application_name After creating a sample application run the following command to start the application. Command To Run Vue App: npm run serve Install vue-qrcode NPM Package: Run the following npm package commands to install QRcode packages Command For VueQRCode: npm install vue-qrcode Command For QRCode(VueQRCode depends on QRCode package) npm install qrcode After installing npm packages references will be added to package.json vue-qrcode Key Properties: The 'vue-qrcode' provides a configurable vue component to render the QR Code. The following key properties: errorCorrectionLevel margin scale width color type value color Import VueQrCode

An Overview On Angular Interceptor

In Angular application, the Http request and response can be inspected and transform using the Interceptors. An application can configure multiple interceptors if needed. Each interceptor gets invoked for every Http request. Interceptor Flow: The Interceptors moto is to intercepts and handles an 'HttpRequest' or 'HttpResponse' Most interceptors transform the outgoing request before passing it to the next interceptor in the chain, by calling 'next.handle(request)'. An interceptor may transform the response event stream as well, by applying addition RXJS operators on the stream returned by 'next.handle()' More rarely, an interceptor may handle the request entirely and compose a new event stream instead of invoking 'next.handle()'. This is acceptable behavior, but keep in mind that further interceptors will be skipped entirely. It is also rare but valid for an interceptor to return multiple responses on the event stream for a single request. Let'

An OverView On VueJS Alert plugin vue-sweetalert2

In this article, we are going to explore the 'sweetalert2' plugin by integrating into a sample VueJs application. Create A Sample Vue App: Let's run the following commands to create a sample Vue app. Command To Install Vue CLI Globally On Your System: npm run -g @vue/cli Command To Create Vue App: vue create your_application_name After creating a sample application run the following command to start the application. Command To Run Vue App: npm run serve Install vue-sweetalert2: Run the following command to install our plugin. Command To Install Alert Plugin: npm install -s vue-sweetalert2 After successfully installing the plugin cross-verify it's presence in the package.json file. Register SweetAlert2 In main.js: On registering SweetAlert2 in main.js, then it will be available to all components of the application. src/main.js: import Vue from 'vue' import App from './App.vue'; import VueSweetalert2 from 'vue-sweetalert2'; import '

Angular Sample To Generate QR Code Using @techiediaries/ngx-qrcode

In this article, we are going to explore and implement a QR Code generator in the angular application using @techiediaries/ngx-qrcode library. QR Code: The quick response, or QR, Code is a two-dimensional version of the BarCode able to convey a wide variety of information almost instantly with the scan of a mobile device. An Overview On @techiediaries/ngrx-qrcode And It's Configurations: The @techiediaries/ngrx-qrcode is the angular library to generate a QR Code in an angular application. The 'NgxQRCodeModule' is QR Code angular module, that will be imported from the '@tehiediaries/ngrx-qrcode'. Using this library we can set up the QRCode generator angular component with basic configuration values. All the configurations are accepted as 'Input()' directive values of the QR Code component. Configuration input parameters are as follows: elementType - this input parameter is used to define the rendering type of QR Code whether like an Image or Canvas. cssClass

NestJS API CRUD Operation Using PostgreSQL Relational Database

NestJS API is a server-side framework that runs on NodeJS frameworks like Express. NestJS application has the ability to talk with both SQL and Non-SQL databases. Here we will develop a sample NestJS API application that communicates with the PostgreSQL relational database. NestJS Database Communication Flow: The 'pg'(PostgreSQL NodeJS library) library was used for communicating with the PostgreSQL database. The 'typeorm'(NodeJS library) library is a framework used for querying the database or manipulating the database using the specified database library(in our case 'pg' node library). The 'typeorm' will be used for all database configurations also. The '@nestjs/typeorm'(NestJS ORM library) is an overlay or wrapper for the 'typeorm'(NodeJS library). By using '@nestjs/typeorm' it gives the advantage of Typescript compatibility and additional feature over 'typeorm'(NodeJS library). So while implementing NestJS application

Steps To Setup PostgreSQL Database Using ElephantSql Cloud Service

PostgreSQL is made of an object-relational database management system. PostgreSQL is a free and opensource relational database. PostgreSQL database supports all features of the SQL database with more extended features. ElephantSQL is a hosting cloud service for the PostgreSQL database. ElephantSQL will manage administrative tasks of PostgreSQL such as installation, upgrades to the latest stable version, and backup handling. For more information ElephantSQL check docs ("https://www.elephantsql.com/docs/index.html"). ElephantSQL Create User Account: To consume the ElephantSQL cloud service let's create a user account for authentication. ElephantSQL Authentication Path: https://customer.elephantsql.com/login ElephantSQL provides multiple authentications like 'SAML Authentication', 'GitHub' and 'Google'. Use any of the login technique of your desire to create an account. Accept Agreements: After successful login, ElephantSQL shows 'Terms of S