Home » Archives for Yatin Batra

Author Archives: Yatin Batra

An experience full-stack engineer well versed with Core Java, Spring/Springboot, MVC, Security, AOP, Frontend (Angular & React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).

Form handling in React-js

Welcome readers, in this tutorial, we will understand form handling in a React-js application. 1. Introduction React is a flexible javascript library responsible for building reusable UI components. It is an open-source component-based frontend library responsible only for the view part of an application and works in a virtual document object model. But before that let us take a look ...

Read More »

Python Ternary Operator

Hello in this tutorial, we will understand the ternary operator in python programming. 1. Introduction The ternary operator is used in programming languages to return output based on a binary condition. It is similar to the if-else condition block just a little neat. In python, it is represented by the below syntax – Syntax value_if_true if condition else value_if_false 1.1 ...

Read More »

useReducer Hook in React-js

Welcome readers, in this tutorial, we will understand how to use the useReducer hook in a react-js application. 1. Introduction React is a flexible javascript library responsible for building reusable UI components. It is an open-source component-based frontend library responsible only for the view part of an application and works in a virtual document object model. But before that let ...

Read More »

Using React Context Hook

Welcome readers, in this tutorial, we will understand how to use the Context Hook in a React-js application. 1. Introduction React is a flexible javascript library responsible for building reusable UI components. It is an open-source component-based frontend library responsible only for the view part of an application and works in a virtual document object model. But before that let ...

Read More »

Mailhog and Nodejs example

Hello. In this tutorial, we will implement a fake SMTP server with the help of Mailhog in a nodejs application. We will use Docker to install and run Mailhog as a container. 1. Introduction Mailhog is an email testing that offers to test an email set up with the help of a fake SMTP server. It allows to send emails ...

Read More »

Url shortener in node.js

Hello. In this tutorial, we will take a look at implementing the url shortener in the nodejs application with the help of mongodb. I will be using the mlab portal for creating and managing the mongodb. 1. Introduction These days remembering the short urls is quote a trend as people do not like to remember the big long urls for ...

Read More »

Using the EJS template in the node.js application

Hello. In this tutorial, we will understand and see a practical implementation of ejs template in the nodejs and express js application. 1. Introduction ejs or Embedded Javascript Templating is a template engine used by nodejs applications. The template engine helps to work on the html code with minimal code. Ejs is one of the most common templating engines used ...

Read More »

HTTP POST Request in Node using Axios

Hello. In this tutorial, we will understand and see a practical implementation of the HTTP POST Request with Axios in the express js application. 1. Introduction Axios is a promise-based HTTP client for browser and nodejs. It makes asynchronous calls to the restful endpoints and can be used with plain javascript or applications like Vue or React. It offers several ...

Read More »

Express.js Template Engine

Hello. In this tutorial, we will understand how to a template engine in a simple express.js application. 1. Introduction The template engine in the express js application helps to use the static template files in the applications. At runtime, it replaces the variable in the template file with the actual values. Some of the commonly used popular template engines are ...

Read More »