Spring Boot Lifecycle Hooks

A brief intro into Spring Lifecycle hooks

Chirag S P
In this article we will talking about Spring Boot life cycle hooks and where we would use them. We will covering below topics, What is a Bean in Spring Boot ? Its an object that is created and managed by Spring IOC. Basically any object managed by ApplicationContext class of Spring is called a Bean. What is Bean Life Cycle ? The spring Bean life cycle is as follows,

Change reCaptcha language dynamically in Angular

How to setup reCaptcha in Angular using PrimeNg

Chirag S P
This article is the continuation of an article I wrote on reCaptcha. There I used ng-recaptcha library to setup recaptcha. This libraray is great, but the issue with it is that, the reCaptcha language change does not work all the time. Recently I found reCaptcha support is present in Primeng library. PrimeNg makes it very simple to setup reCaptcha. Steps to setup reCaptcha using PrimeNg Install primeNg using below commands,

Working from home versus office

My thoughts on wfh and working from office

Chirag S P
As more and more companies are starting to call their employees back to office, it seems a good time as any, to compare how it has been for me working from home versus working from office. From more than 2 years now I have been working from home. I’m someone who enjoys being in office and socializing, but hates the traffic and lack of focus in office. So what usually ended up happening was that I would come back from office and then finish the day’s tasks at home.

Micro Project 1 - Coffee Timer

Roadmap to build tiny projects

Chirag S P
This year I decided to build tiny projects every month and actually release it to the world. But it seems, due to skill and time constraint up untill now, I was only able to do complete two tiny projects. So I decided to build ultra small JS projects and improve my frontend skills. As my first micro project I created a code timer. This is basic JavaScript project that times down from 25 minutes.

Migrating Spring to Spring Boot

How to migrate from Spring to Spring Boot.

Chirag S P
As more and more applications move towards platform-as-a-service(PAAS), many companies are looking to migrate from Spring MVC to Spring Boot. Migrating from Spring MVC to Spring Boot involves quite a few changes affecting the entire application. In this article I will explain my experience on migrating Spring MVC to Spring Boot in my current company and the issues I faced doing the same. 1. POM Changes First thing to do, is the POM changes.

Setup reCaptcha in Angular

How to setup reCaptcha in Angular using ng-reCaptcha

Chirag S P
Setting up reCaptcha becomes necessary to provide good security to front end applications. In this article we are going to be setting up reCaptcha in Angular. Here are going to be using a library called called ng-recaptcha. Setting up reCaptcha in Angular is made simple using ng-recaptcha library. Follow below steps to setup reCaptcha. Install ng-recaptcha library using command npm install ng-recaptcha --save To setup reCaptcha we need to get siteKey from google reCaptcha site.

How to setup Postgres Database in Mac

Install and Setup Postgres in Mac

Chirag S P
In this article we are going to setup PosGresql in Mac. Setting up PostGresql in Mac is very easy if we make use of Homebrew. Open terminal and check if Homebrew is installed using below command brew -v If its already installed, Homebrew version should be displayed. Next, update Homebrew to the latest version using below command brew update Now install PostGres SQL using homebrew command

How to setup Logging in Spring Boot

Implement Logback in Spring Boot

Chirag S P
Spring Boot comes with build-in logging functionality and its very easy to integrate. Logback Spring Boot uses logback logging framework. Logback in an upgrade of log4j framework. It comes bundled with spring boot starter packs. For example if we using spring web service, then logback comes bundled with it. <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web-services<actifactId> </dependency> Implementation To use logging in a Java class use below code Logger logger = LoggerFactory.getLogger(getClass()); logger.error("This is an error"); That’s it !

May 2022 Update

Short update for May 2022.

Chirag S P
Challenge #4 - May 2022 : Oota and SQL Gramamar v2 Time taken : 1st May to 31 May 2022 Amount Earned : 0 dollars Status: Partial Completion. Completed Oota. So its the end of May, for the month of May, I had challenged myself to complete both Oota and and SQL Grammar v2. Doing both challenges at the same is very very tough. I did a little bit of SQL Grammar v2 , but I had to completely focus on Oota.

Access Gitlab from local using two factor token

How to push changes to Gitlab, when two factor authentication is enabled.

Chirag S P
When two factor authentication is enabled in Gitlab, we get authentication error when we try to push changes from our local to Gitlab. The error look like something as shown below, remote: HTTP Basic: Access denied To be able to push to Gitlab, we need to setup personal token in Gitlab and set it up in our local Git project as well. In Gitlab go to User Profile at top right end,