Frontend
React SPA
Login, marketplace, inventory, admin
Technical overviewFull-stack application architecture
An authenticated marketplace connecting a React interface to a layered Java API.
Source code
Inspect the implementation, commit history, and project documentation.
01
A peer-to-peer car marketplace where users list, buy, and manage vehicles. React drives the workflow while a Spring Boot API applies JWT auth, business rules, and MySQL persistence. It is live at carsale.pesanth.com.
02
Frontend
Login, marketplace, inventory, admin
HTTP client
Attaches bearer tokens to API calls
Security boundary
RSA JWT, BCrypt, roles, CORS
API
Accounts, cars, listings, purchases
Business logic
Ownership, listing, purchase rules
Data access
Entity mapping and queries
Database
Users, roles, balances, vehicles
Orchestration
nginx, API, and MySQL on one network
Public ingress
Outbound-only ingress, no open ports
03
Spring Security validates RSA JWTs and BCrypt hashes passwords, so authorization needs no server session.
Controllers delegate to services and JPA repositories instead of coupling HTTP handlers to the database.
Docker Compose wires the React client, Java API, and MySQL on one network for local and VM deployment.
04
$ React client -> authenticated API request
Spring Security -> JWT validation
Controller -> service -> JPA repository
Docker Compose: nginx + API + MySQL
Cloudflare Tunnel -> carsale.pesanth.com
live at carsale.pesanth.com05

06