Learn to use Spring Boot and Java to create a complete REST API. We will use PostgreSQL as the relational database and Spring JdbcTemplate for interacting with that. Apart from this, we will add authentication using JWT (JSON Web Tokens).
We will use REST APIs developed to create Expense Tracker PWA App using React JS framework.
PART I – Contents for Backend APIs
- Introduction
- Project Setup & Creating Database Objects
- Persisting User Information on Register
- Login and Hashing Password
- JWT Authentication
- Adding New Categories
- Category – Find & Update Functionality
- Adding Category Transactions
- Transaction – Find and Update
- Deleting – Category & Transactions
- CORS & Testing from Web Client
- Summary and Code
PART II – Contents for Frontend PWA App
- Frontend App UI Overview
- Project Setup
- User Registration and Authentication
- Handling JWT Token
- Adding New Categories
- Category – Find & Update Functionality
- Adding Category Transactions
- Transaction – Find and Update
- Deleting – Category & Transactions
- Summary and Code
Outline
Article 1: Introduction
Course Learning Objectives
By the end of this course, you will be able to:
- Build a real-world Expense Tracker application from scratch
- Design and develop RESTful APIs using Spring Boot
- Implement user authentication and authorization using JWT
- Secure user credentials with password hashing
- Design and manage relational data using PostgreSQL
- Perform full CRUD operations for categories and transactions
- Handle CORS and test APIs from a frontend client
- Build a modern React.js Progressive Web App (PWA)
- Integrate frontend and backend using secure API communication
- Manage authentication state and JWT tokens on the client side
- Create a portfolio-ready full-stack project
Course Prerequisites
To follow this course comfortably, you should have:
- Basic knowledge of Java and object-oriented programming
- Familiarity with Spring Boot fundamentals (controllers, services, repositories)
- Basic understanding of REST APIs and HTTP methods
- Working knowledge of SQL and relational databases
- Basic experience with JavaScript and React.js
- A general understanding of how web applications work
Note: You don’t need to be an expert in all these areas. Each concept will be explained as we build the project step by step.
Course Overview
Welcome to this hands-on full-stack development course, where we will build a complete Expense Tracker application using Spring Boot REST APIs, React.js, and PostgreSQL. This course is designed to simulate a real-world development workflow, making it perfect for developers preparing for jobs, interviews, or portfolio projects.
The course is divided into two structured parts for better clarity and learning flow.
In Part I – Backend Development, we will start by setting up the Spring Boot project and designing the database schema. You will learn how to implement user registration, securely store passwords, and build a login system using JWT-based authentication. As the course progresses, we will create REST APIs for managing expense categories and transactions, including find, update, and delete operations. We will also configure CORS and tes