How zhelez9aca/clothes-shop works
Clothes Shop is a Spring Boot backend for an online clothing store. Its documented user workflow covers registration or login with JWT cookies, browsing products and categories, managing a cart, and creating or retrieving orders. The README describes a controller → service → repository → database architecture; the graph uses that documented layering but does not claim unsampled implementation details. DTOs, mappers, and exception handling are present as internal supporting layers, but their specific runtime connections are not established by the available evidence.
Main entry points: repository Repositories · AuthorizationService.java Authorization · AuthController.java Auth API · ClothesController.java Catalog API
Components 15
HTTP API
- Auth API
src/main/java/com/example/clothesshop/controller/AuthController.java - Catalog API
src/main/java/com/example/clothesshop/controller/ClothesController.java - Category API
src/main/java/com/example/clothesshop/controller/CategoryController.java - Cart API
src/main/java/com/example/clothesshop/controller/CartController.java - Order API
src/main/java/com/example/clothesshop/controller/OrderController.java
Shop Services
- Authorization
src/main/java/com/example/clothesshop/service/AuthorizationService.java - Clothes Service
src/main/java/com/example/clothesshop/service/ClothesService.java - Category Service
src/main/java/com/example/clothesshop/service/CategoryService.java - Cart Service
src/main/java/com/example/clothesshop/service/CartService.java - Order Service
src/main/java/com/example/clothesshop/service/OrderService.java
Persistence
- Repositories
src/main/java/com/example/clothesshop/repository - PostgreSQL
Authentication
- JWT Cookie
src/main/java/com/example/clothesshop/security/JWToken.java - Security Config
src/main/java/com/example/clothesshop/config/SpringSecurity.java
Other components
- Shopper
Connections 18
- Shopper → Auth API: registers or logs in
README.md - Shopper → Catalog API: views products
README.md - Shopper → Category API: browses categories
README.md - Shopper → Cart API: manages cart
README.md - Shopper → Order API: manages orders
README.md - Auth API → Authorization: handles auth
README.md - Catalog API → Clothes Service: handles catalog
README.md - Category API → Category Service: handles categories
README.md - Cart API → Cart Service: handles cart
README.md - Order API → Order Service: handles orders
README.md - Authorization → Repositories: uses repository layer
README.md - Clothes Service → Repositories: uses repository layer
README.md - Category Service → Repositories: uses repository layer
README.md - Cart Service → Repositories: uses repository layer
README.md - Order Service → Repositories: uses repository layer
README.md - Repositories → PostgreSQL: persists data
README.md - Authorization → JWT Cookie: issues JWT
README.md - JWT Cookie → Shopper: sets HttpOnly cookie
README.md