How adrprates/projeto-sist-horto works
SIGDM is a web system for public discovery and requesting nursery seedlings, with Secretaria staff managing requests, beneficiaries, annual limits, seedlings, inventory and reports. The main workflow is: browse the catalog, assemble a yearly draft within limits, submit it to reserve stock, then process approval or a proposed change, prepare collection, and record delivery or expiry. The frontend routes role-specific pages; the Spring backend exposes domain operations and persists the associated records. The README documents the workflow and capabilities; several frontend-to-API and unsampled subsystem connections are not shown in excerpts and are therefore left unverified.
Main entry points: AppRoutes.tsx Page routing · EtapaService.java Stage processing · EstoqueService.java Stock availability · solicitacaoService.ts API clients
Components 26
Web experience
- Page routing
frontend-sist-horto/src/routes/AppRoutes.tsx - Public pages
frontend-sist-horto/src/pages/PaginaInicio/PaginaInicio.tsx - Seedling catalog
frontend-sist-horto/src/pages/CatalogoMudas/CatalogoMudas.tsx - Request pages
frontend-sist-horto/src/pages/PaginaSolicitacao/PaginaSolicitacao.tsx - Admin pages
frontend-sist-horto/src/pages/ListaSolicitacoesAdmin/ListaSolicitacoesAdmin.tsx - API clients
frontend-sist-horto/src/api/solicitacaoService.ts
Identity and access
- Authentication UI
frontend-sist-horto/src/context/AuthProvider.tsx - Auth API
frontend-sist-horto/src/api/authService.ts - Identity service
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/AuthService.java - JWT security
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/security/SecurityConfig.java
Request lifecycle
- Request endpoints
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/controller/SolicitacaoController.java - Request rules
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/SolicitacaoService.java - Stage processing
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/EtapaService.java - Request records
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/model/Solicitacao.java - Request repository
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/repository/SolicitacaoRepository.java
Seedling and stock
- Stock availability
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/EstoqueService.java - Seedling records
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/model/Muda.java - Inventory records
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/model/Estoque.java
Administration
- Request review
frontend-sist-horto/src/pages/DetalhesSolicitacaoAdmin/DetalhesSolicitacaoAdmin.tsx - Beneficiary management
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/BeneficiarioService.java - Annual limits
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/ParametroAnualService.java - Operational reports
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/RelatorioService.java - PDF export
frontend-sist-horto/src/utils/gerarPdfRelatorio.ts
Other components
- Visitor
- Beneficiary
- Secretaria staff
Connections 32
- Visitor → Page routing: browses
- Beneficiary → Page routing: uses
- Secretaria staff → Page routing: uses
- Page routing → Public pages: routes to
frontend-sist-horto/src/routes/AppRoutes.tsx - Page routing → Seedling catalog: routes to
frontend-sist-horto/src/routes/AppRoutes.tsx - Page routing → Request pages: routes to
frontend-sist-horto/src/routes/AppRoutes.tsx - Page routing → Admin pages: routes to
frontend-sist-horto/src/routes/AppRoutes.tsx - Beneficiary → Seedling catalog: finds seedlings
- Beneficiary → Request pages: submits request
- Secretaria staff → Request review: reviews requests
- Request pages → API clients: uses
- Admin pages → API clients: uses
- API clients → Request endpoints: calls API
- Authentication UI → Auth API: uses
- Auth API → Identity service: calls API
- Identity service → JWT security: configures identity
- Request endpoints → Request rules: delegates
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/controller/SolicitacaoController.java - Request endpoints → Stage processing: delegates
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/controller/SolicitacaoController.java - Request rules → Stock availability: checks availability
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/SolicitacaoService.java - Stage processing → Stock availability: updates reservations
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/EtapaService.java - Stage processing → Request repository: persists stages
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/EtapaService.java - Request rules → Request repository: loads requests
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/SolicitacaoService.java - Request repository → Request records: reads and writes
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/repository/SolicitacaoRepository.java - Stock availability → Inventory records: reads stock
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/EstoqueService.java - Stock availability → Request repository: sums reservations
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/EstoqueService.java - Seedling catalog → API clients: loads data
- Beneficiary → Beneficiary management: manages profile
- Secretaria staff → Beneficiary management: manages accounts
- Secretaria staff → Annual limits: sets limits
- Secretaria staff → Operational reports: reviews reports
- Operational reports → PDF export: exports PDF
- Stage processing → Request records: advances lifecycle
backend-sist-horto/src/main/java/com/bsh/backend_sist_horto/gestao_mudas/service/EtapaService.java