How kaynarocha/petvet works
PetVet is a browser-based veterinary practice management frontend. A user signs in, the login flow authenticates and loads the current user, then the system exposes dashboard and CRUD areas for appointments, companies, pets, services, tutors, and users. The sampled code shows shared API authentication state and form-to-service calls; the README gives no further product detail. Backend implementation and most domain services were not sampled, so their internal behavior and links are left unspecified.
Main entry points: api.ts HTTP API client · page.tsx Login screen · UsuarioForm.tsx User form · usuarioService.ts User service
Components 23
Access and session
- Login screen
front/app/login/page.tsx - Authentication service
front/app/services/authService.ts - Auth state
front/app/redux/slices/authSlice.ts - Redux store
front/app/redux/store.ts
Practice operations
- Dashboard
front/app/(sistema)/home/page.tsx - Appointments
front/app/(sistema)/agendamentos - Appointment form
front/app/(sistema)/agendamentos/components/AgendamentoForm.tsx - Pets
front/app/(sistema)/pets - Pet form
front/app/(sistema)/pets/components/PetForm.tsx
Business records
- User service
front/app/services/usuarioService.ts - Companies
front/app/(sistema)/empresas - Company form
front/app/(sistema)/empresas/components/EmpresaForm.tsx - Services
front/app/(sistema)/servicos - Service form
front/app/(sistema)/servicos/components/ServicoForm.tsx - Tutors
front/app/(sistema)/tutores - Tutor form
front/app/(sistema)/tutores/components/TutorForm.tsx - Address lookup
front/app/services/enderecoService.ts - User management
front/app/(sistema)/usuarios - User form
front/app/(sistema)/usuarios/components/UsuarioForm.tsx - Company service
front/app/services/empresaService.ts
API transport
- HTTP API client
front/app/services/api.ts
Other components
- User
- Backend API
Connections 17
- User → Login screen: signs in
front/app/login/page.tsx - Login screen → Authentication service: requests login
front/app/login/page.tsx - Login screen → User service: loads user
front/app/login/page.tsx - Login screen → Auth state: dispatches login
front/app/login/page.tsx - Authentication service → HTTP API client: posts credentials
front/app/services/authService.ts - User service → HTTP API client: sends requests
front/app/services/usuarioService.ts - HTTP API client → Backend API: sends HTTP
front/app/services/api.ts - HTTP API client → Redux store: reads token
front/app/services/api.ts - HTTP API client → Auth state: dispatches logout
front/app/services/api.ts - User → Dashboard: opens system
- Appointments → Appointment form: renders form
front/app/(sistema)/agendamentos/novo/page.tsx - Companies → Company form: renders form
front/app/(sistema)/empresas/novo/page.tsx - Services → Service form: renders form
front/app/(sistema)/servicos/novo/page.tsx - User management → User form: renders form
front/app/(sistema)/usuarios/novo/page.tsx - User form → User service: saves user
front/app/(sistema)/usuarios/components/UsuarioForm.tsx - User form → Company service: loads companies
front/app/(sistema)/usuarios/components/UsuarioForm.tsx - Tutor form → Address lookup: looks up address
front/app/(sistema)/tutores/components/TutorForm.tsx