How rrohan419/kittyp-be works
Kittyp Backend is a Spring Boot API for user accounts and product commerce, with substantial veterinary-clinic, booking, nutrition, and content capabilities. The documented commerce journey is cart and checkout through order management and payment; the sampled payment-capture service branches between store orders and treatment invoices, confirming stock, saving order status, generating invoices, and publishing payment-success events. The source excerpts are selective, so links among most controller, service, and persistence modules are not asserted; the README supplies several high-level capabilities not represented in the supplied tree.
Main entry points: PaymentCaptureService.java Payment capture · ParentBookingEnrollmentService.java Pet enrollment · GoogleOAuth2Service.java Google sign-in · FileStorageController.java File uploads
Components 20
Identity and access
- Authentication
src/main/java/com/kittyp/auth - Google sign-in
src/main/java/com/kittyp/auth/service/GoogleOAuth2Service.java
Commerce and payments
- Cart and checkout
src/main/java/com/kittyp/cart - Orders
src/main/java/com/kittyp/order - Payment capture
src/main/java/com/kittyp/payment/service/PaymentCaptureService.java - Product catalog
Veterinary care
- Treatment invoices
src/main/java/com/kittyp/doctor/service/TreatmentInvoiceService.java - Clinic operations
src/main/java/com/kittyp/clinic - Doctor bookings
src/main/java/com/kittyp/booking - Pet enrollment
src/main/java/com/kittyp/visit/service/ParentBookingEnrollmentService.java
Content and nutrition
- Pet nutrition
src/main/java/com/kittyp/nutrition - AI recommendations
src/main/java/com/kittyp/ai - Articles and blogs
src/main/java/com/kittyp/article
Shared platform
- File uploads
src/main/java/com/kittyp/common/controller/FileStorageController.java - AWS S3 storage
src/main/java/com/kittyp/common/service/S3StorageService.java - Email notifications
src/main/java/com/kittyp/email - WhatsApp messaging
src/main/java/com/kittyp/notification
Other components
- User
- Razorpay
- PostgreSQL
Connections 9
- Payment capture → Orders: looks up and saves
- Payment capture → Product catalog: confirms or cancels stock
- Payment capture → Treatment invoices: routes treatment capture
- Payment capture → Email notifications: publishes success event
- Payment capture → Razorpay: handles captured payment
- File uploads → AWS S3 storage: uploads files
- Google sign-in → User: fetches account info
- Pet enrollment → Clinic operations: enrolls pets
- Pet enrollment → Doctor bookings: backfills active bookings