How matifl3/tpvetcare works
PetCare’s frontend supports owner, professional, and administrator workflows: users authenticate into a role-aware dashboard, then manage pets, appointments, shopping, clinical records, training progress, or administration. Domain pages call resource services, which use a shared HTTP client to reach the Spring Boot API; authentication adds JWTs to requests. The README documents the full product scope, while sampled frontend sources substantiate selected routing and service calls. Backend internals and several unsampled page implementations are not represented as inspected components.
Main entry points: api.service.ts HTTP client · mascota.service.ts Pet API service · auth.service.ts Authentication · dashboard.component.ts Dashboard shell
Components 25
Application Core
- App routes
PetCare/frontend/src/app/app.routes.ts - Dashboard shell
PetCare/frontend/src/app/layout/dashboard/dashboard.component.ts - Authentication
PetCare/frontend/src/app/core/auth.service.ts - Login and registration
PetCare/frontend/src/app/pages/login/login.component.ts
Owner Services
- Owner pet management
PetCare/frontend/src/app/pages/cliente/mascotas/mascotas-page.component.ts - Appointment booking
PetCare/frontend/src/app/pages/cliente/reservar-turno/reservar-turno-page.component.ts - Product browsing
PetCare/frontend/src/app/pages/cliente/tienda/tienda-page.component.ts - Shopping cart and purchase
PetCare/frontend/src/app/services/carrito.service.ts - Payment cards
PetCare/frontend/src/app/services/tarjeta.service.ts - Purchase history
PetCare/frontend/src/app/pages/cliente/carrito/carrito-historial/carrito-historial.component.ts
Professional Care
- Clinical record page
PetCare/frontend/src/app/pages/profesional/historial-clinico/historial-clinico-profesional-page.component.ts - Patient management
PetCare/frontend/src/app/pages/profesional/mis-pacientes/mis-pacientes-profesional-page.component.ts - Training progress
PetCare/frontend/src/app/pages/seguimiento/seguimiento-page.component.ts
Administration
- Administrative operations
PetCare/frontend/src/app/pages/admin - Sales and profit reports
PetCare/frontend/src/app/pages/admin/reportes
Shared API Layer
- HTTP client
PetCare/frontend/src/app/core/api.service.ts - Pet API service
PetCare/frontend/src/app/services/mascota.service.ts - Appointment service
PetCare/frontend/src/app/services/turno.service.ts - Product service
PetCare/frontend/src/app/services/producto.service.ts - Clinical record service
PetCare/frontend/src/app/services/historial-clinico.service.ts - Progress service
PetCare/frontend/src/app/services/seguimiento.service.ts - Reporting service
PetCare/frontend/src/app/services/reporte.service.ts - Shared domain models
PetCare/frontend/src/app/core/models.ts
Other components
- PetCare user
- Spring Boot API
Connections 29
- PetCare user → Login and registration: signs in
- Login and registration → Authentication: submits credentials
PetCare/frontend/src/app/pages/login/login.component.ts - Authentication → HTTP client: sends requests
PetCare/frontend/src/app/core/auth.service.ts - App routes → Login and registration: routes to
PetCare/frontend/src/app/app.routes.ts - App routes → Dashboard shell: routes to
PetCare/frontend/src/app/app.routes.ts - Dashboard shell → Authentication: checks session
PetCare/frontend/src/app/layout/dashboard/dashboard.component.ts - PetCare user → Dashboard shell: opens workspace
- Owner pet management → Pet API service: manages pets
PetCare/frontend/src/app/pages/cliente/mascotas/mascotas-page.component.ts - Appointment booking → Pet API service: loads pets
PetCare/frontend/src/app/pages/cliente/reservar-turno/reservar-turno-page.component.ts - Appointment booking → Appointment service: requests appointment
PetCare/frontend/src/app/pages/cliente/reservar-turno/reservar-turno-page.component.ts - Product browsing → Product service: loads products
PetCare/frontend/src/app/pages/cliente/tienda/tienda-page.component.ts - Product browsing → Shopping cart and purchase: adds products
PetCare/frontend/src/app/pages/cliente/tienda/tienda-page.component.ts - Purchase history → Shopping cart and purchase: loads history
- Clinical record page → Pet API service: loads patient
PetCare/frontend/src/app/pages/profesional/historial-clinico/historial-clinico-profesional-page.component.ts - Clinical record page → Clinical record service: reads and updates
PetCare/frontend/src/app/pages/profesional/historial-clinico/historial-clinico-profesional-page.component.ts - Patient management → Pet API service: lists patients
PetCare/frontend/src/app/pages/profesional/mis-pacientes/mis-pacientes-profesional-page.component.ts - Training progress → Progress service: manages progress
PetCare/frontend/src/app/pages/seguimiento/seguimiento-page.component.ts - Administrative operations → Reporting service: requests reports
- Sales and profit reports → Reporting service: loads reports
- Pet API service → HTTP client: calls
PetCare/frontend/src/app/services/mascota.service.ts - Appointment service → HTTP client: calls
PetCare/frontend/src/app/services/turno.service.ts - Shopping cart and purchase → HTTP client: calls
PetCare/frontend/src/app/services/carrito.service.ts - Product service → HTTP client: calls
PetCare/frontend/src/app/services/producto.service.ts - Payment cards → HTTP client: calls
- Clinical record service → HTTP client: calls
PetCare/frontend/src/app/services/historial-clinico.service.ts - Progress service → HTTP client: calls
- Reporting service → HTTP client: calls
PetCare/frontend/src/app/services/reporte.service.ts - HTTP client → Spring Boot API: sends HTTP
PetCare/frontend/src/app/core/api.service.ts - Authentication → Spring Boot API: authenticates
PetCare/frontend/src/app/core/auth.service.ts