Displaying Data in Views in Angular [Step-by-Step Guide]

Combining data values with their representation on the page is called data binding. You display your data to a user (and collect data from the user) by binding controls in the HTML template to the data properties of the component class. Here is the step-by-step guide to display data in views. Step 1: Install the Angular Application If … Read more

Python String count() Method

Python string count() method “returns the number of occurrences of a substring in the given string.” Syntax string.count(substring, start, end) Parameters The count() function has one compulsory and two optional parameters. substring: It is a required parameter, a string whose count is to be found.  start: It is an Optional parameter in which the starting index … Read more

Pandas Series value_counts() Method

Pandas Series value_counts() method “returns a Series containing counts of unique values.” The resulting object will be in descending order, so the first element is the most frequently-occurring element. It excludes NA values by default. Syntax Series.value_counts(normalize=False, sort=True, ascending=False, bins=None, dropna=True) Parameters normalize: boolean, default False. If True, the object returned will contain the relative … Read more

How To Configure ESLint in Visual Studio Code on Mac

In this tutorial, we will see How To Configure ESLint in Visual Studio Code on Mac. ESLint is explicitly designed to be completely configurable, meaning that you can turn off every rule and run only with necessary syntax validation or mix and match the bundled rules and your custom rules to make the ESLint perfect … Read more

How to Implement Routing in Vue.js

Vue is already an excellent Javascript library that allows you to create dynamic frontend applications. Vue.js is also great for single-page applications (SPA).  Vue Router is the official router for Vue.js. It profoundly integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze. Features include: Nested route/view mapping. It is a modular, … Read more

How to Implement Material Icons in Angular [Step-by-Step Guide]

Angular Material library has a wide variety of components that we can use. One such component is <mat-icon>. The <mat-icon> component makes using vector-based icons in your angular app easier. To use Material icons in Angular, use the <mat-icon> component. The <mat-icon> directive supports icon fonts and SVG icons but not bitmap-based formats. Icons are necessary … Read more

How to Implement Drag and Drop in Angular

To create a Drag and drop functionality in Angular, use “DragDropModule” in the Angular Material library. Here is the step-by-step guide that implements drag-and-drop functionality. Step 1: Install the Angular project and Angular Material Library ng new ang9drag Go into the project folder and open the project inside the visual studio code. Install the hammerjs using the following command. … Read more

JavaScript Array Sort() Method

JavaScript Array sort() method is “used to sort the elements of an array”. It sorts the elements as strings in alphabetical and ascending order. Syntax array.sort(compareFunction) Parameters compareFunction(): It is an optional argument. The function defines an alternative sort order, and it should return a negative, zero, or positive value, depending on the arguments. Return value … Read more

How to Create Blockchain in JavaScript

To create a simple Blockchain in Node.js, we need one Genesis Block. You can refer to Genesis Block as the first block of the Blockchain because Blockchain is an array of blocks, and Genesis is the first block of the Blockchain. Genesis Block The genesis block is the first block of the Blockchain. The genesis block is generally … Read more

How to Perform CRUD Operations using React, Node.js, and MongoDB

Here are the steps to create a CRUD application in React.js: Step 1: Install React Application npx create-react-app reactcrud cd reactcrud npm start If you are facing any issues with compiling, please create a .env file on the root and add the following line of code. SKIP_PREFLIGHT_CHECK=true Go to this URL: http://localhost:3000/ Install the Bootstrap 4 Framework … Read more

How To Use PHP In Visual Studio Code

Visual Studio Code is a great editor for PHP and other language development. You get almost all the features like syntax highlighting, bracket matching, PHP IntelliSense, and snippets out of the box, and you can create or add more functionality through community-created Visual Studio Code extensions. No developer enjoys debugging web applications. But we all know … Read more

State Management in Angular Using NGXS [Step-by-Step Guide]

NGXS is a state management pattern for the Angular framework. NGXS is a single source of truth for your application’s state, providing simple rules for predictable state mutations. The concept is similar to a Redux library mainly used in React applications. You can not directly change the state; you must commit the action and then … Read more

Nuxt.js Laravel Authentication: Everything You Need to Know

Nuxt.js is a free and open-source web application framework based on Vue.js, Node.js, Webpack, and Babel.js. Nuxt is inspired by Next.js, a framework of similar purpose based on React.js. Nuxt is based on a robust modular architecture. With Nuxt.js, your application will be optimized out of the box. Let’s use Nuxt.js and Laravel together to … Read more

How to Integrate Redux Inside a React App

Here are the steps to integrate a React application with Redux. Step 1: Install React.js Type the following command. npm install -g create-react-app create-react-app postreactredux Step 2: Install Redux and react-redux. Type the following command to install both of the libraries. npm install redux react-redux –save # or yarn add redux react-redux Also, install Bootstrap … Read more

How to Upload Avatar in Laravel: A Step-by-Step Guide

Here is the step-by-step guide on How to Upload Avatar in Laravel. Step 1: Download Laravel Project composer create-project –prefer-dist laravel/laravel uploadavatarimages Step 2: Setup SQL Database //.env DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=avatarimageupload DB_USERNAME=root DB_PASSWORD= Laravel provides a quick way to scaffold all of the routes and views you need for authentication using one simple command: php … Read more

Angular 6 CRUD: How to Create MEAN Stack Application

Here are the steps to create a crud application in Angular 6. Step 1: Create an Angular 6 Project. ng new ng6crud Go into the project folder. cd ng6crud Start the Angular 6 application using the following command. ng serve –open It compiles and opens up the browser at this URL: http://localhost:4200 Step 2: Install Bootstrap 4. … Read more

How to Create Newsletter in Laravel

To create a newsletter in Laravel, use the “spatie/laravel-newsletter” package for creating a newsletter in laravel. MailChimp is an email marketing service that lets us send newsletters to our subscribers. Here is the step-by-step guide to creating a newsletter in Laravel. Step 1: Download Laravel Project Establish  Laravel Project by typing the following command. composer create-project … Read more

How to Implement Algolia Search in Laravel

Laravel Scout is search engine-agnostic; it keeps things basic. This isn’t an issue for indexing, as Scout will help keep everything in sync and format your data the way you want. But for search, it’s limited. If you need to get more information, then go to Laravel. Here is the step-by-step guide to implement algolia … Read more

Vuex Axios: How to Send Vuex Axios GET Request in Vue

Here are the steps to send an axios get request using vuex in Vue.js. Step 1: Install Vue using Vue cli. Type the following command in your terminal. npm install -g @vue/cli # or yarn global add @vue/cli If you find any installation error, try the administrator mode command. Create a project using the following … Read more

Nested Set in Laravel [Step by Step Guide]

Nested sets or Nested Set Model(NSM) efficiently stores the hierarchical data in a relational table. The nested set model is to number the nodes according to a tree traversal, which visits each node twice, assigning numbers in the order of visiting and at both visits. That leaves two numbers for each node, stored as two attributes. … Read more

Vue Pagination Tutorial: Everything You Need to Know

Here are the steps to implement pagination in Vue.js with Laravel. Step 1: Install Laravel. To use Laravel Valet, you can install Laravel using the following command. composer create-project laravel/laravel paginate –prefer-dist Go to your project folder and start the development server with the following command. php artisan serve If you are using Laravel Valet, … Read more

How to Create and Download Zip File in Laravel 10

To download a zip file in Laravel, use the “ZipArchive” class. To create a zip file in Laravel, use the “stechstudio/laravel-zipstream” package. I will use the data.zip file I will put inside the Laravel project’s public folder. How to download a zip file in Laravel Here is the step-by-step guide to downloading a zip file … Read more

Vue Router Loading Indicator: The Practical Guide

Here are the steps to implement the vue-router loading indicator. Step 1: Install Vue using vue-cli npm install -g @vue/cli # or yarn global add @vue/cli Create a project using the following command. vue create vuerouterprogress Go to your project. cd vuerouterprogress Start the development server with the following command. npm run serve It will … Read more

Laravel Login with Linkedin using Socialite Package [Step-by-Step Guide]

Here is the step-by-step guide to creating a login with LinkedIn in the Laravel project. Step 1: Configure the Laravel Project composer create-project –prefer-dist laravel/laravel laravellinkedinlogin  Step 2: Set up a MySQL database Instantly configure the database in the .env file. //.env DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravellinkedin DB_USERNAME=root DB_PASSWORD= Migrate two tables provided by Laravel Move to … Read more

How to Generate Captcha Code in Laravel

Captcha stands for Completely Automated Public Turing test. It is mainly used as a security test to ensure only human users can pass through. Computers or bots are not able to solve a captcha. There are different types of captcha. Therefore, we can use some protection. Here is the step-by-step guide to generate a captcha code … Read more

How to Add Loading Spinner Component in React.js

Loading spinners in React is considered good UI/UX practices as they inform the users that data are being loaded from an external API. Additionally, buttons must be disabled when the loading spinner is displayed to avoid multiple API calls during a fetch request. Here are the steps to add a loading spinner component in React. Step 1: Configure React … Read more

How to Use Chart.js to Create Charts in React

The React wrapper for chart.js is react-chartjs-2, which simplifies things in React. However, it doesn’t support all the customization features of Chart.js. Here are the steps to create charts in React. Step 1: Install React Project npx create-react-app reactjscharttutorial Move to the project folder by cd command and start the development server by typing the following code. … Read more

Laravel Client Side Form Validation Using jQuery

Here are the steps to create client-side form validation using jQuery in Laravel. Step 1: Install Laravel Project. composer create-project –prefer-dist laravel/laravel FormValidation Step 2: Set up a MySQL database in .env file. Configure the database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=form DB_USERNAME=root DB_PASSWORD= Set up local database credentials. Migrate two tables provided by … Read more

Create a Chart using chart.js in Laravel and Vue

Here is the step-by-step guide to creating a chart using chart.js in Laravel and Vue application. Step 1: Install and configure Laravel composer create-project laravel/laravel lavuecharts –prefer-dist Now, install the dependencies. npm install Step 2: Create a vue.js component that displays the form. Change the welcome.blade.php file and add the id attribute to the main div to bind the vue … Read more

Laravel 5.6 CRUD Tutorial with Example

Here are the steps to create a crud application in Laravel 5.6: Step 1: Configure Laravel 5.6 Project. Install the brand new Laravel Project by typing the following command. composer create-project –prefer-dist laravel/laravel passportappointmentsystem Step 2: Set up a MySQL database in .env file. Configure the database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=passportsystem DB_USERNAME=root … Read more

How to Use Axios with Vue.js

Here are the steps to use Axios with Vue.js. Step 1: Install Vue.js. If you have not installed the vue cli, type the following command. npm install -g @vue/cli Type the command to generate the Vue project. vue create vueaxiospro It will create a necessary boilerplate for us to work with it. Step 2: Install … Read more

Laravel Vue File Upload Example

Here are the steps to upload a file using Laravel and Vue.js. Step 1: Install Laravel composer create-project laravel/laravel vuefileupload –prefer-dist After installation, go to the project folder root and type the following command. npm install It installs all the necessary dependencies to build Vue components. Step 2: Configure the database. Add your database credentials … Read more

Angular State Management Made Simple with NgRx

Angular NgRx Store is a client-side data management pattern used in large applications. The Ngrx/Store implements the Redux pattern using RxJS observables of Angular. The ngrx/store builds on the concepts made famous by Redux and supercharges it with the backing of RxJS.  Redux Redux is a predictable state container for JavaScript applications. Redux following the Unidirectional … Read more

Styling React Using Sass

To style a React application using Sass, create a Sass file the same way as you create CSS files, but Sass files have the file extension .scss and import the Sass file the same way you imported a CSS file. Here are the steps to integrate the Sass file in the React.js project. Step 1: … Read more

How Logging Works in Laravel Applications

Logs are records of the events happening with your application. Laravel, by default, writes log information into the laravel.log file that ships with a fresh Laravel installation. How to Configure Logs in Laravel Laravel log configuration is located in the config > logging.php file. Consider using a few log channels based on your preferences, such … Read more

Google reCAPTCHA Node.js: Step-By-Step Guide

There are two versions of reCAPTCHA offered by Google: reCAPTCHA v3 reCAPTCHA v2 We will use reCAPTCHA v2. Here is the step-by-step guide for Google recaptcha in Node.js. Step 1: Create a project and configure it. npm init We are initializing the package.json file. { “name”: “googlerecaptcha”, “version”: “1.0.0”, “description”: “”, “main”: “index.js”, “scripts”: { “start”: “nodemon … Read more

How to Use vue-resource In Vue.js

The vue-resource is a well-known HTTP request library in VueJS. Of course, you can also use axios and jQuery if you want, but today we will attempt HTTP calls using vue-resource. For the backend API, we are using Laravel Framework. For this project, we are using Vue along with vue-router and vue-resource. Here are the … Read more

How to Use vue-router in Vue.js

Routing in Vue is used to navigate the Vue application, and it happens on the client side (in the browser) without full page reload, which results in a faster user experience. Here are the steps to implement vue-router in Vue.js. Step: 1 Create one project. Create one project.  mkdir VueRoute Go to that project and … Read more

How to Integrate Admin Template in Angular

Here is the step-by-step guide to integrating the admin template in Angular. Step: 1 If you are in Windows, open your CMD in Administrator mode and type the following command. npm install -g @angular/cli If you are on a Mac or Linux, type the following command. sudo npm install -g @angular/cli It will take some time to … Read more

Laravel 5.4 Crud Example: The Complete Guide

Here are the steps to create a crud application in Laravel. Step 1: Create a Laravel project Type the following command in your terminal to create a project. composer create-project –prefer-dist laravel/laravel Laravel54 It will take 2 minutes to install a brand-new Laravel Framework After installing, go to your project root folder and type php artisan … Read more