How carloslobos17/sistema-de-gestion-de-inventario works
This repository is an inventory-management ERP, but the implemented user-facing scope visible here centers on login, dashboard navigation, user administration, and brand management—not the README’s broader finance or sales capabilities. The main workflow is browser login and authenticated access to role-gated pages, whose feature clients call Express routes and domain services backed by MySQL through Prisma. The backend’s startup wiring, some UI pages, and dashboard implementation were not excerpted, so links beyond explicit routing and calls are omitted or left unverified.
Main entry points: App.tsx React application · app.ts Express API · axiosConfig.ts HTTP client · auth.routes.ts Auth routes
Components 24
Web application
- React application
frontend/src/App.tsx - Dashboard
frontend/src/pages/DashboardPage.tsx - HTTP client
frontend/src/api/axiosConfig.ts
Identity and access
- Login client
frontend/src/features/auth/api/auth.service.ts - Login state
frontend/src/features/auth/hooks/useLoginForm.ts - Auth routes
backend/src/modules/auth/auth.routes.ts - Auth controller
backend/src/modules/auth/auth.controller.ts - Auth service
backend/src/modules/auth/auth.service.ts - JWT authentication
backend/src/middlewares/auth.middleware.ts
Brand management
- Brand management UI
frontend/src/features/brands - Brand API client
frontend/src/features/brands/api/brands.service.ts - Brand routes
backend/src/modules/brands/brand.routes.ts - Brand controller
backend/src/modules/brands/brand.controller.ts - Brand service
backend/src/modules/brands/brand.service.ts - Brand repository
backend/src/modules/brands/brand.repository.ts
User administration
- User administration UI
frontend/src/features/users - User API client
frontend/src/features/users/api/users.service.ts - User routes
backend/src/modules/users/user.routes.ts - User controller
backend/src/modules/users/user.controller.ts - User service
backend/src/modules/users/user.service.ts - User repository
backend/src/modules/users/user.repository.ts
API and persistence
- Express API
backend/src/app.ts - MySQL database
Other components
- ERP user
Connections 26
- ERP user → React application: uses
frontend/src/App.tsx - React application → Dashboard: routes
frontend/src/App.tsx - React application → User administration UI: routes
frontend/src/App.tsx - React application → Brand management UI: routes
frontend/src/App.tsx - Login state → Login client: submits login
- Login client → HTTP client: posts credentials
frontend/src/features/auth/api/auth.service.ts - Brand API client → HTTP client: sends requests
frontend/src/features/brands/api/brands.service.ts - User API client → HTTP client: sends requests
frontend/src/features/users/api/users.service.ts - HTTP client → Express API: calls API
- Express API → Auth routes: mounts routes
backend/src/app.ts - Express API → User routes: mounts routes
backend/src/app.ts - Express API → Brand routes: mounts routes
backend/src/app.ts - Auth routes → Auth controller: dispatches
backend/src/modules/auth/auth.routes.ts - Auth controller → Auth service: calls
backend/src/modules/auth/auth.controller.ts - Auth service → User repository: looks up and saves tokens
backend/src/modules/auth/auth.service.ts - Auth routes → JWT authentication: authenticates requests
- Brand routes → Brand controller: dispatches
backend/src/modules/brands/brand.routes.ts - Brand routes → JWT authentication: authenticates requests
backend/src/modules/brands/brand.routes.ts - Brand controller → Brand service: calls
backend/src/modules/brands/brand.controller.ts - Brand service → Brand repository: calls
backend/src/modules/brands/brand.service.ts - User routes → User controller: dispatches
backend/src/modules/users/user.routes.ts - User routes → JWT authentication: authenticates requests
backend/src/modules/users/user.routes.ts - User controller → User service: calls
backend/src/modules/users/user.controller.ts - User service → User repository: calls
backend/src/modules/users/user.service.ts - Brand repository → MySQL database: reads and writes
- User repository → MySQL database: reads and writes