How flaviooliveira-code/horus_pdv works
Hórus PDV is a small-business point-of-sale and operations management application. Users enter through the React interface, authenticate or register, then use operational screens for customer, supplier, product, cash-register, sales-history, and reporting tasks; the frontend communicates with an ASP.NET Core API backed by SQL Server. The README also documents advanced management modules, company settings, and security/email capabilities. Some advanced UI and backend paths are represented by their exact directories because their source was not sampled; dashed edges mark undocumented or unverified integrations.
Main entry points: api API clients · App.tsx Navigation shell · DatabaseAccess Operational data access · AuthController.cs Authentication endpoints
Components 27
React application
- Navigation shell
FRONTEND/src/App.tsx - Login and registration
FRONTEND/src/pages/Auth - Business records
FRONTEND/src/pages/Admin - Sales and cash UI
FRONTEND/src/pages/Admin/SalesStartPage.tsx - Sales history
FRONTEND/src/pages/Admin/SalesHistoryPage.tsx - Reports
FRONTEND/src/pages/Admin/ReportsPage.tsx - Advanced modules
FRONTEND/src/components/Admin/MarketModulePage.tsx - Company and settings
FRONTEND/src/pages/Admin/MyCompanyPage.tsx - API clients
FRONTEND/src/services/api
ASP.NET API
- Authentication endpoints
API/NETCORE/Controllers/Auth/AuthController.cs - Catalog endpoints
API/NETCORE/Controllers/Clientes/ClienteController.cs - Cash operations
API/NETCORE/Controllers/Caixa/CaixaController.cs - Sales history endpoints
API/NETCORE/Controllers/HistoricoVendas/HistoricoVendasController.cs - Reporting endpoints
API/NETCORE/Controllers/Relatorio/RelatorioController.cs - Market modules
API/NETCORE/Controllers/ModuloMercado/ModuloMercadoController.cs - Company settings
API/NETCORE/Controllers/Empresa/EmpresaController.cs - Cash business rules
API/NETCORE/Services/Caixa/HorusCaixaService.cs - Accounts and sessions
API/NETCORE/Controllers/Usuario/UsuarioController.cs
SQL persistence
- SQL Server
- Security store
API/NETCORE/Repositories/DatabaseAccess/HorusSecurityStore.cs - Operational data access
API/NETCORE/Repositories/DatabaseAccess - SQL connection
API/NETCORE/Repositories/Connection.cs
Security and messaging
- JWT sessions
API/NETCORE/Services/Security/HorusJwtService.cs - reCAPTCHA verification
API/NETCORE/Services/Security/HorusRecaptchaService.cs - Transactional email
API/NETCORE/Services/Email/HorusEmailService.cs
Other components
- Operator
- SMTP service
Connections 40
- Operator → Navigation shell: uses
README.md - Navigation shell → Login and registration: routes to
FRONTEND/src/App.tsx - Navigation shell → Business records: routes to
FRONTEND/src/App.tsx - Navigation shell → Sales and cash UI: routes to
FRONTEND/src/App.tsx - Navigation shell → Sales history: routes to
FRONTEND/src/App.tsx - Navigation shell → Reports: routes to
FRONTEND/src/App.tsx - Navigation shell → Advanced modules: routes to
FRONTEND/src/App.tsx - Operator → Login and registration: authenticates
README.md - Login and registration → API clients: requests
- Business records → API clients: requests
- Sales and cash UI → API clients: requests
- Sales history → API clients: requests
- Reports → API clients: requests
- Advanced modules → API clients: requests
- Company and settings → API clients: requests
- API clients → Authentication endpoints: calls
- API clients → Catalog endpoints: calls
- API clients → Cash operations: calls
- API clients → Sales history endpoints: calls
- API clients → Reporting endpoints: calls
- API clients → Market modules: calls
- API clients → Company settings: calls
- Cash operations → Cash business rules: delegates
API/NETCORE/Controllers/Caixa/CaixaController.cs - Sales history endpoints → Cash business rules: uses
API/NETCORE/Controllers/HistoricoVendas/HistoricoVendasController.cs - Authentication endpoints → Security store: reads and writes
API/NETCORE/Controllers/Auth/AuthController.cs - Accounts and sessions → Security store: reads and writes
API/NETCORE/Controllers/Usuario/UsuarioController.cs - Authentication endpoints → JWT sessions: issues tokens
API/NETCORE/Controllers/Auth/AuthController.cs - Authentication endpoints → reCAPTCHA verification: verifies
API/NETCORE/Controllers/Auth/AuthController.cs - Authentication endpoints → Transactional email: sends recovery
API/NETCORE/Controllers/Auth/AuthController.cs - Accounts and sessions → Transactional email: sends reset
API/NETCORE/Controllers/Usuario/UsuarioController.cs - Transactional email → SMTP service: sends mail
API/NETCORE/Services/Email/HorusEmailService.cs - Cash business rules → Operational data access: uses
API/NETCORE/Services/Caixa/HorusCaixaService.cs - Catalog endpoints → Operational data access: persists records
- Sales history endpoints → Operational data access: queries sales
API/NETCORE/Controllers/HistoricoVendas/HistoricoVendasController.cs - Reporting endpoints → Operational data access: queries reports
API/NETCORE/Controllers/Relatorio/RelatorioController.cs - Market modules → Operational data access: loads modules
API/NETCORE/Controllers/ModuloMercado/ModuloMercadoController.cs - Company settings → Operational data access: loads company
API/NETCORE/Controllers/Empresa/EmpresaController.cs - Security store → SQL connection: opens
API/NETCORE/Repositories/DatabaseAccess/HorusSecurityStore.cs - Operational data access → SQL connection: opens
API/NETCORE/Repositories/DatabaseAccess/HorusSecurityStore.cs - SQL connection → SQL Server: connects