02 · Full-stack commerce
Deluxe Furniture
A furniture storefront running on my own Spring Boot API, with stateless auth and server-verified checkout.
- Role
- Solo · API, database, integration, frontend
- Timeline
- 2024 – 2026
- REST endpoints
- 33
- JPA entities
- 10


The problem
The storefront started as a course project wired to a hosted Strapi API. Swapping in a real backend meant the UI's data shapes, pagination and auth assumptions all broke — and carts built while logged out still had to end in correct, stock-checked orders.
The solution
A Spring Boot 3 REST API with Spring Security, JWT in HttpOnly cookies and USER / SELLER / ADMIN roles, backed by PostgreSQL. An adapter layer in the frontend maps API DTOs to one internal shape, and checkout syncs the whole cart in one transactional request that merges variants and verifies stock.
Architecture
Engineering highlights
- 01
Stateless, cookie-based auth
JWTs live in HttpOnly cookies that page scripts can't read; a filter validates the token and loads roles per request.
- 02
One-shot cart sync
PUT /api/carts/sync replaces the server cart in a single transaction instead of one request per item.
- 03
Specification-based filtering
Keyword, category, brand, price and shipping filters compose into JPA Specifications with paging and sorting.
- 04
DTO boundary
Entities never leave the service layer; Bean Validation returns field-level errors.
Technologies
- Java 17
- Spring Boot 3
- Spring Security
- JWT
- Spring Data JPA
- PostgreSQL
- OpenAPI
- React
- TanStack Query
- Docker
