Skip to content
GET /projects

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
deluxe-furniture.app
Product page with colour options and add to cart
Product page with colour options and add to cart
deluxe-furniture.app
Shop catalog with search and filters in dark mode
Shop catalog with search and filters in dark mode

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

HttpOnly cookieDTOsReact storefrontSecurity filter (JWT)Spring Boot APIJPA / SpecificationsPostgreSQL (Neon)

Engineering highlights

  1. 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.

  2. 02

    One-shot cart sync

    PUT /api/carts/sync replaces the server cart in a single transaction instead of one request per item.

  3. 03

    Specification-based filtering

    Keyword, category, brand, price and shipping filters compose into JPA Specifications with paging and sorting.

  4. 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
next case fileReal Estate Management