Tech

Leveraging JSON Files with cURL for Efficient Data Transfer

APIs (Application Programming Interfaces) play a crucial role in enabling communication between different software applications. cURL (Client URL) is a command-line tool widely used to transfer data with URLs, supporting various protocols including HTTP, HTTPS, FTP, and more. When dealing with APIs, often data exchange occurs in JSON (JavaScript Object Notation) format due to its…

Tech

Summary of all SSO Related Concepts

Single Sign-On (SSO) has revolutionized the way users authenticate and access applications in today’s digital landscape. By providing a seamless authentication experience and improving security, SSO has become a cornerstone of modern identity and access management (IAM) solutions. In this blog, we’ll delve into the core concepts of SSO, including its benefits, key components and…

Tech

451. Sort Characters By Frequency

Understanding the Problem: Given a string, our goal is to sort its characters based on their frequency. For example, for the input “tree,” the output should be “eert” or “eetr,” as both have the same characters but with different arrangements based on frequency. Approach: To tackle this problem, we’ll employ a HashMap to store each…

Tech

Components in React

React, a JavaScript library for building user interfaces, relies heavily on the concepts of components and props to create modular and reusable code. Let’s explore these fundamental concepts. Components: What is a Component? In React, a component is a self-contained, reusable building block that encapsulates a piece of the user interface and its behavior. Components…

Tech

React Hooks Overview

React Hooks were introduced in React 16.8 to allow functional components to use state and lifecycle features that were previously only available in class components. Hooks provide a more direct and concise way to manage state, side effects, and other React features within functional components. Key Concept State Hook (useState): useState allows functional components to…

Tech

Configuring CORS (Cross-Origin Resource Sharing) in Micronaut

Introduction: Cross-Origin Resource Sharing (CORS) is an important security feature implemented by web browsers to prevent malicious websites from accessing resources on other domains. In a Micronaut application, configuring CORS properly ensures that your APIs can be accessed securely from web applications hosted on different origins. In this blog post, we’ll explore how to configure…

Micronaut

How To Serve PDF Files from a Micronaut Controller

In web applications, serving static files like PDFs is a common requirement, especially when dealing with documents, reports, or downloadable content. Micronaut, a modern JVM-based framework for building microservices and serverless applications, provides convenient features for handling file downloads from controllers. In this blog, we’ll explore how to serve PDF files from a Micronaut controller…