Posts

Showing posts from May, 2026

CRUD Operations Part 1 – Backend Development using Spring Boot

 Introduction : In this tutorial, we will start building a CRUD Application using Spring Boot and PostgreSQL. In this Part 1 blog, we will focus only on Backend Development. We will create: ✅ Employee Entity ✅ Repository Layer ✅ Service Layer ✅ Controller Layer ✅ REST APIs using Spring Boot ✅ Save Employee Data ✅ Get All Employees ✅ Get Employee By ID At the end of this, our backend APIs will be ready to integrate with React frontend. What is CRUD? CRUD stands for: Create → Save Data Read → Fetch Data Update → Modify Data Delete → Remove Data PostgreSQL Configuration : Configure database details inside application.properties spring.datasource.url=jdbc:postgresql://localhost:5432/employee_db spring.datasource.username=postgres // here you can use your db username spring.datasource.password=postgres // here you can use db your password spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true Employee Entity : Create Employee.java @Entity @Getter @Setter @T...

JWT Authentication using React and Spring Boot

 Introduction : Authentication is one of the most important features in modern web applications. In this tutorial, we will learn how to implement JWT (JSON Web Token) Authentication using React.js and Spring Boot. This guide explains how login authentication works between frontend and backend applications using secure REST APIs. We will see: How login APIs work How tokens are generated after login How React stores JWT tokens How secured APIs are protected How frontend and backend communicate with each other This is beginner-friendly and explained step-by-step for Full Stack Java learners. Technologies : Frontend React.js JavaScript HTML5 CSS3 Axios Backend Java Spring Boot Spring Security JWT Authentication REST APIs PostgreSQL What is JWT? JWT stands for JSON Web Token. It is a secure token-based authentication mechanism used in modern web applications. When a user logs in: User enters username and password Spring Boot validates credentials Backend generates JWT token React stores...

React Form Integration with Spring Boot REST API

Introduction: In modern web development, React is commonly used for frontend applications, while Spring Boot is widely used for backend REST APIs. In this tutorial, we will learn how to integrate a React form with a Spring Boot backend and send form data using REST API calls. This guide is beginner-friendly and helps understand frontend-backend communication in Full Stack Development. Technologies Used : Frontend: React.js HTML5 CSS3 JavaScript Axios Backend: Java Spring Boot REST API PostgreSQL Create Spring Boot Backend First, create a Spring Boot project using Spring Initializr. Required Dependencies Spring Web Spring Data JPA PostgreSQL Driver Lombok Create Entity Class @Entity public class Employee { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private String email; // getters and setters } Create Repository @Repository public interface EmployeeRepository extends JpaRepository<Employee, Long> { } Cr...