How diegolebron03/ropastore works
RopaStore is a Spring MVC application for retail clothing inventory. Staff use the dashboard, product catalog, inventory operations and movement history, and TXT reports. Product and stock services apply domain rules and persist product and transaction records through Spring Data repositories. The README documents PostgreSQL/Neon and Thymeleaf; the source excerpts and index establish several service and repository calls, but not every view or persistence detail. Dashed links mark documented or likely integrations whose direct wiring was not shown.
Main entry points: ProductoRepository.java Product repository · DashboardController.java Dashboard controller · ProductService.java Product service · InventoryService.java Inventory service
Components 19
Product catalog
- Product pages
src/main/java/com/ropastore/controller/ProductoController.java - Product service
src/main/java/com/ropastore/service/ProductService.java - Image storage
src/main/java/com/ropastore/service/FileStorageService.java - Product templates
src/main/resources/templates/productos
Inventory operations
- Inventory pages
src/main/java/com/ropastore/controller/InventoryController.java - Inventory service
src/main/java/com/ropastore/service/InventoryService.java - Movement templates
src/main/resources/templates/inventario
Dashboard and reports
- Dashboard controller
src/main/java/com/ropastore/controller/DashboardController.java - Dashboard template
src/main/resources/templates/dashboard/index.html - Report controller
src/main/java/com/ropastore/controller/ReportController.java - Report service
src/main/java/com/ropastore/service/ReportService.java - Report template
src/main/resources/templates/reportes/index.html
Domain and persistence
- Product records
src/main/java/com/ropastore/entity/Producto.java - Movement records
src/main/java/com/ropastore/entity/Transaccion.java - Product repository
src/main/java/com/ropastore/repository/ProductoRepository.java - Movement repository
src/main/java/com/ropastore/repository/TransaccionRepository.java - PostgreSQL / Neon
- Exception handler
src/main/java/com/ropastore/exception/GlobalExceptionHandler.java
Other components
- Store staff
Connections 25
- Store staff → Product pages: manages products
README.md - Store staff → Inventory pages: records movements
README.md - Store staff → Dashboard controller: views dashboard
README.md - Store staff → Report controller: requests reports
README.md - Product pages → Product service: calls
src/main/java/com/ropastore/controller/ProductoController.java - Product service → Image storage: stores images
src/main/java/com/ropastore/service/ProductService.java - Product service → Product repository: queries and saves
src/main/java/com/ropastore/service/ProductService.java - Product pages → Product templates: renders
src/main/java/com/ropastore/controller/ProductoController.java - Inventory pages → Inventory service: calls
src/main/java/com/ropastore/controller/InventoryController.java - Inventory service → Product repository: loads products
src/main/java/com/ropastore/service/InventoryService.java - Inventory service → Movement repository: records and queries
src/main/java/com/ropastore/service/InventoryService.java - Inventory pages → Movement templates: renders
- Dashboard controller → Product service: gets metrics
src/main/java/com/ropastore/controller/DashboardController.java - Dashboard controller → Inventory service: gets movements
src/main/java/com/ropastore/controller/DashboardController.java - Dashboard controller → Dashboard template: renders
- Report controller → Report service: requests report
src/main/java/com/ropastore/controller/ReportController.java - Report service → Product repository: loads products
src/main/java/com/ropastore/service/ReportService.java - Report service → Movement repository: loads movements
src/main/java/com/ropastore/service/ReportService.java - Report controller → Report template: renders
- Product repository → Product records: queries and persists
src/main/java/com/ropastore/repository/ProductoRepository.java - Movement repository → Movement records: queries and persists
src/main/java/com/ropastore/repository/TransaccionRepository.java - Product records → Movement records: tracks movements
src/main/java/com/ropastore/entity/Producto.java - Product repository → PostgreSQL / Neon: persists via JPA
README.md - Movement repository → PostgreSQL / Neon: persists via JPA
README.md - Exception handler → Store staff: formats errors