How willbugs/pontocar works
PontoCar Web unifies workshop, inventory, finance, accounting, customer records and Realizar’s works, rentals and condominium functions in one React client and .NET API. Users enter through the routed web app, authenticate, and use module screens; API controllers handle requests against shared SQL Server state. The README documents the unified scope, while excerpts show routing, API setup, selected controller persistence, and NFe service registration. Most module screens and controllers were not sampled, so their links are omitted or marked unverified rather than inferred as concrete calls.
Main entry points: App.tsx React application · Program.cs ASP.NET API · PontoCarDbContext.cs SQL Server database · CaixaPage.tsx Cash screens
Components 26
Web client
- React application
frontend/src/App.tsx - Login and identity
frontend/src/contexts/AuthContext.tsx - Customer records
frontend/src/pages/clientes/ClientesPage.tsx - Workshop screens
frontend/src/pages/os/OSPage.tsx - Inventory screens
frontend/src/pages/estoque/EstoquePage.tsx - Cash screens
frontend/src/pages/caixa/CaixaPage.tsx - Accounting screens
frontend/src/pages/contabilidade/ContabilidadePage.tsx - Works screens
frontend/src/pages/obras/ObrasPage.tsx - Rental screens
frontend/src/pages/alugueis/AlugueisPage.tsx - Condominium screen
frontend/src/pages/condominio/CondominioPage.tsx - Reports screens
frontend/src/pages/relatorios/RelatoriosPage.tsx
API and domain
- ASP.NET API
backend/PontoCar.Api/Program.cs - Authentication API
backend/PontoCar.Api/Controllers/AuthController.cs - Customer domain
backend/PontoCar.Domain/Entities/Cliente.cs - Work orders
backend/PontoCar.Api/Controllers/OrdensServicoController.cs - Inventory movements
backend/PontoCar.Domain/Entities/MovimentoEstoque.cs - Invoice issuance
backend/PontoCar.Infrastructure/Services/NFe/UnimakeNFeService.cs
Finance operations
- Cash and accounts
backend/PontoCar.Api/Controllers/MovimentosContaController.cs - Accounting records
backend/PontoCar.Api/Controllers/LancamentosContabeisController.cs
Realizar modules
- Works management
backend/PontoCar.Api/Controllers/ObrasController.cs - Rental contracts
backend/PontoCar.Api/Controllers/ContratosAluguelController.cs - Condominium module
frontend/src/pages/condominio/CondominioPage.tsx
Persistence and integrations
- SQL Server database
backend/PontoCar.Infrastructure/Data/PontoCarDbContext.cs - Refresh token service
backend/PontoCar.Infrastructure/Services/RefreshTokenService.cs
Other components
- Staff user
- SEFAZ
Connections 25
- Staff user → React application: uses
README.md - React application → Login and identity: routes to
frontend/src/App.tsx - React application → Customer records: routes to
frontend/src/App.tsx - React application → Workshop screens: routes to
frontend/src/App.tsx - React application → Inventory screens: routes to
frontend/src/App.tsx - React application → Cash screens: routes to
frontend/src/App.tsx - React application → Accounting screens: routes to
frontend/src/App.tsx - React application → Works screens: routes to
frontend/src/App.tsx - React application → Rental screens: routes to
frontend/src/App.tsx - React application → Condominium screen: routes to
frontend/src/App.tsx - React application → Reports screens: routes to
frontend/src/App.tsx - React application → ASP.NET API: uses API
README.md - ASP.NET API → Authentication API: maps controllers
backend/PontoCar.Api/Program.cs - Authentication API → SQL Server database: reads and writes
backend/PontoCar.Api/Controllers/AuthController.cs - Work orders → SQL Server database: reads and writes
backend/PontoCar.Api/Controllers/OrdensServicoController.cs - Works management → SQL Server database: reads and writes
backend/PontoCar.Api/Controllers/ObrasController.cs - ASP.NET API → SQL Server database: configures
backend/PontoCar.Api/Program.cs - ASP.NET API → Invoice issuance: registers
backend/PontoCar.Api/Program.cs - Invoice issuance → SEFAZ: submits invoice
backend/PontoCar.Infrastructure/Services/NFe/UnimakeNFeService.cs - ASP.NET API → Refresh token service: registers
backend/PontoCar.Api/Program.cs - Cash screens → Cash and accounts: uses API
README.md - Accounting screens → Accounting records: uses API
README.md - Works screens → Works management: uses API
README.md - Rental screens → Rental contracts: uses API
README.md - Condominium screen → Condominium module: supports module
README.md