How melonaco/marcosproyecto works
Hero Games is an electronics-commerce application with customer shopping and administrative management capabilities. The README describes the Spring Boot/Thymeleaf integration as future work, while the tree already contains Spring controllers, services, repositories, templates, and entities. The sampled source only shows client-side catalog name filtering, so backend routing and service interactions are not verified; dashed links mark those uncertain connections.
Main entry points: repository Application database · CatalogoController.java Product catalog · DemoApplication.java Spring application · AuthController.java Account and login
Components 23
Customer shopping
- Account and login
src/main/java/com/example/demo/controller/AuthController.java - Product catalog
src/main/java/com/example/demo/controller/CatalogoController.java - Catalog filtering
src/main/resources/static/js/catalogo.js - Shopping cart
src/main/java/com/example/demo/controller/CarritoController.java - Home and information
src/main/java/com/example/demo/controller/HomeController.java - Thymeleaf views
src/main/resources/templates - Static resources
src/main/resources/static
Administration
- Product management
src/main/java/com/example/demo/adminController/ProductoController.java - Category management
src/main/java/com/example/demo/adminController/CategoriaController.java - Customer management
src/main/java/com/example/demo/adminController/ClientesController.java - Sales dashboard
src/main/java/com/example/demo/adminController/ComprasController.java - Stock reports
src/main/java/com/example/demo/adminController/ReportesController.java
Application backend
- Spring application
src/main/java/com/example/demo/DemoApplication.java - Cart operations
src/main/java/com/example/demo/service/CarritoService.java - Product services
src/main/java/com/example/demo/service/ProductoService.java - Category services
src/main/java/com/example/demo/service/CategoriaService.java - User services
src/main/java/com/example/demo/service/UsuarioService.java - Sales services
src/main/java/com/example/demo/service/VentaService.java - Report services
src/main/java/com/example/demo/service/ReporteService.java - Authentication security
src/main/java/com/example/demo/config/SecurityConfig.java
Persistence
- Application database
src/main/java/com/example/demo/repository
Other components
- Customer
- Administrator
Connections 28
- Customer → Account and login: registers or logs in
README.md - Customer → Product catalog: browses products
README.md - Product catalog → Catalog filtering: filters names
- Customer → Shopping cart: manages cart
README.md - Customer → Thymeleaf views: uses shopping views
README.md - Administrator → Product management: manages products
README.md - Administrator → Category management: manages categories
README.md - Administrator → Customer management: consults users
README.md - Administrator → Sales dashboard: consults sales
README.md - Administrator → Stock reports: reviews stock
README.md - Administrator → Thymeleaf views: uses admin views
README.md - Spring application → Account and login: routes requests
- Spring application → Product catalog: routes requests
- Spring application → Shopping cart: routes requests
- Shopping cart → Cart operations: delegates cart work
- Product management → Product services: delegates product work
- Category management → Category services: delegates category work
- Customer management → User services: delegates user work
- Sales dashboard → Sales services: delegates sales work
- Stock reports → Report services: requests reports
- Account and login → Authentication security: uses authentication
- Product services → Application database: accesses product data
- Category services → Application database: accesses category data
- User services → Application database: accesses user data
- Sales services → Application database: accesses sales data
- Report services → Application database: reads reporting data
- Product catalog → Thymeleaf views: renders catalog view
- Static resources → Catalog filtering: includes filter script