How stivencr7/catalogoproductos_prueba works
This is a product-catalog application: users authenticate, then browse and edit products in an Angular interface backed by Spring REST endpoints and MySQL. A separate catalog-import capability fetches categories and products from Fake Store API and stores new records locally. The graph captures the sampled controller, service, repository, and JWT interactions plus README-documented frontend/API and database capabilities; unsampled Angular service wiring and startup database setup are represented only where documentation supports them.
Main entry points: CatalogoService.java Catalog importer · CategoriaRepository.java Category repository · app.routes.ts App routes · LoginController.java Login endpoint
Components 19
Angular storefront
- App routes
FrontedStoreApi/src/app/app.routes.ts - Login screen
FrontedStoreApi/src/app/login/login.component.ts - Product grid
FrontedStoreApi/src/app/productos/prodcutos.component.ts - Auth service
FrontedStoreApi/src/app/Services/auth.service.ts - Product service
FrontedStoreApi/src/app/Services/producto.service.ts - Category service
FrontedStoreApi/src/app/Services/categorias.service.ts
REST API
- Login endpoint
BackendStoreApi/src/main/java/com/storeApi/web/controller/LoginController.java - Product endpoints
BackendStoreApi/src/main/java/com/storeApi/web/controller/ProdcutosController.java - Category endpoint
BackendStoreApi/src/main/java/com/storeApi/web/controller/CategoriaController.java - Import endpoint
BackendStoreApi/src/main/java/com/storeApi/web/controller/CatalogoController.java
Authentication
- JWT handling
BackendStoreApi/src/main/java/com/storeApi/web/security/JWTCreator.java - JWT request filter
BackendStoreApi/src/main/java/com/storeApi/web/security/JWTFilter.java
Catalog import
- Catalog importer
BackendStoreApi/src/main/java/com/storeApi/web/service/CatalogoService.java
Persistence
- Product repository
BackendStoreApi/src/main/java/com/storeApi/web/repository/ProductosRepository.java - Category repository
BackendStoreApi/src/main/java/com/storeApi/web/repository/CategoriaRepository.java - User repository
BackendStoreApi/src/main/java/com/storeApi/web/repository/UsuarioRepository.java - MySQL database
Other components
- Store user
- Fake Store API
Connections 22
- Store user → App routes: uses
FrontedStoreApi/src/app/app.routes.ts - App routes → Login screen: routes to
FrontedStoreApi/src/app/app.routes.ts - App routes → Product grid: guards route
FrontedStoreApi/src/app/app.routes.ts - Login screen → Auth service: submits login
FrontedStoreApi/src/app/login/login.component.ts - Product grid → Product service: requests products
FrontedStoreApi/src/app/productos/prodcutos.component.ts - Store user → Product grid: browses catalog
README.md - Auth service → Login endpoint: posts credentials
FrontedStoreApi/src/app/Services/auth.service.ts - Product service → Product endpoints: consumes endpoints
README.md - Category service → Category endpoint: consumes endpoints
README.md - Login endpoint → User repository: looks up user
BackendStoreApi/src/main/java/com/storeApi/web/controller/LoginController.java - Login endpoint → JWT handling: creates token
BackendStoreApi/src/main/java/com/storeApi/web/controller/LoginController.java - JWT request filter → JWT handling: validates token
BackendStoreApi/src/main/java/com/storeApi/web/security/JWTFilter.java - Product endpoints → Product repository: reads and saves
BackendStoreApi/src/main/java/com/storeApi/web/controller/ProdcutosController.java - Product endpoints → Category repository: checks category
BackendStoreApi/src/main/java/com/storeApi/web/controller/ProdcutosController.java - Category endpoint → Category repository: accesses categories
BackendStoreApi/src/main/java/com/storeApi/web/controller/CategoriaController.java - Import endpoint → Catalog importer: invokes import
BackendStoreApi/src/main/java/com/storeApi/web/controller/CatalogoController.java - Catalog importer → Fake Store API: fetches catalog
BackendStoreApi/src/main/java/com/storeApi/web/service/CatalogoService.java - Catalog importer → Category repository: finds and saves
BackendStoreApi/src/main/java/com/storeApi/web/service/CatalogoService.java - Catalog importer → Product repository: checks and saves
BackendStoreApi/src/main/java/com/storeApi/web/service/CatalogoService.java - Product repository → MySQL database: persists entities
README.md - Category repository → MySQL database: persists entities
README.md - User repository → MySQL database: persists entities
README.md