How kbtmpst/petcare works
This repository combines a grooming-shop management interface with an Express API. In the client, users navigate to operational pages, manage records, and view dashboard and analytics screens; the sampled appointment logic handles booking rules and related records. The client repositories currently keep data in memory. The server provides API, authentication, and database layers, but the excerpts do not establish how every client page connects to that API. Unsampled capabilities are represented where the tree supports them; edges are limited to relationships evidenced by excerpts or the source index.
Main entry points: appointmentService.js Appointment rules · authService.js Authentication wiring · serviceService.js Service rules · App.jsx Client routes
Components 28
Client interface
- Client routes
client/src/presentation/App.jsx - Service management
client/src/presentation/pages/Services.jsx - Shop pages
client/src/presentation/pages
Client operations
- Appointment rules
client/src/business/services/appointmentService.js - Service rules
client/src/business/services/serviceService.js - Customer operations
client/src/business/services/customerService.js - Pet operations
client/src/business/services/petService.js - Transaction operations
client/src/business/services/transactionService.js - Analytics
client/src/business/services/analyticsService.js - Service validation
client/src/business/validators/serviceValidator.js - Date and currency formatting
client/src/business/utils/format.js
Client storage
- Appointments store
client/src/data/repositories/appointmentRepository.js - Customers store
client/src/data/repositories/customerRepository.js - Pets store
client/src/data/repositories/petRepository.js - Services store
client/src/data/repositories/serviceRepository.js - Transactions store
client/src/data/repositories/transactionRepository.js - ID generator
client/src/data/database/idGenerator.js
Server API
- Express application
server/src/app.js - Service controller
server/src/controllers/serviceController.js - Authentication controller
server/src/controllers/authController.js - API routes
server/src/routes/index.js
Server business and data
- Authentication wiring
server/src/business/services/authService.js - Authentication rules
server/src/business/services/createAuthService.js - Token signing
server/src/business/security/tokenService.js - User repository
server/src/data/repositories/userRepository.js - Database pool
server/src/data/database/pool.js - Server configuration
server/src/config/env.js
Other components
- Shop staff
Connections 24
- Shop staff → Client routes: uses
- Client routes → Service management: routes to
client/src/presentation/App.jsx - Client routes → Shop pages: routes to
client/src/presentation/App.jsx - Service management → Service rules: calls
client/src/presentation/pages/Services.jsx - Service rules → Services store: reads and writes
client/src/business/services/serviceService.js - Service rules → Service validation: validates with
client/src/business/services/serviceService.js - Appointment rules → Appointments store: reads and writes
client/src/business/services/appointmentService.js - Appointment rules → Pets store: reads
client/src/business/services/appointmentService.js - Appointment rules → Customers store: reads
client/src/business/services/appointmentService.js - Appointment rules → Services store: reads
client/src/business/services/appointmentService.js - Appointment rules → Transactions store: writes
client/src/business/services/appointmentService.js - Appointment rules → Date and currency formatting: formats with
client/src/business/services/appointmentService.js - Customers store → ID generator: generates IDs
client/src/data/repositories/customerRepository.js - Service management → Service validation: uses
client/src/presentation/pages/Services.jsx - Express application → Server configuration: loads
server/src/app.js - Express application → API routes: mounts
server/src/app.js - Service controller → Service rules: calls
server/src/controllers/serviceController.js - Authentication controller → Authentication wiring: calls
server/src/controllers/authController.js - Authentication wiring → Authentication rules: configures
server/src/business/services/authService.js - Authentication wiring → User repository: provides users
server/src/business/services/authService.js - Authentication wiring → Token signing: provides tokens
server/src/business/services/authService.js - Authentication wiring → Server configuration: reads settings
server/src/business/services/authService.js - Authentication rules → Server configuration: validates with
server/src/business/services/createAuthService.js - User repository → Database pool: uses
server/src/data/repositories/userRepository.js