How jhasabhishek17/petpaws works
PetPaws is a full-stack pet marketplace and care platform. Buyers browse and filter listings, inspect pet details, check out, and follow orders; sellers manage listings and stock, while veterinarians and pet owners use consultation, grooming, and support features. The React app selects these user-facing areas, and an Express REST API provides backend capabilities with MongoDB and JSON-file persistence. The README documents several product flows not visible in sampled UI code; links are limited to calls or relationships shown in the excerpts or explicitly documented there.
Main entry points: App.jsx App shell · server.js REST API · db.js JSON persistence · orderController.js Orders and tracking
Components 28
Client experience
- App shell
client/src/App.jsx - Role authentication
client/src/components/AuthModal.jsx
Marketplace and orders
- Pet marketplace
client/src/components/Marketplace.jsx - Pet details
client/src/components/PetDetailModal.jsx - Checkout and payment
client/src/components/CheckoutModal.jsx - Order tracking
client/src/components/OrdersTracking.jsx - Seller portal
client/src/components/SellerDashboard.jsx
Care and support
- Vet consultations
client/src/components/VetSection.jsx - Grooming and training
client/src/components/GroomingCareSection.jsx - Customer support
client/src/components/CustomerSupport.jsx
API capabilities
- REST API
server/server.js - Authentication
server/controllers/authController.js - Pet listings
server/controllers/petController.js - Orders and tracking
server/controllers/orderController.js - Vet scheduling
server/controllers/vetController.js - Care services
server/controllers/serviceController.js - Support tickets
server/controllers/supportController.js
Persistence
- User records
server/models/User.js - Pet records
server/models/Pet.js - Order records
server/models/Order.js - Vet records
server/models/VetProfile.js - Appointment records
server/models/VetAppointment.js - Grooming records
server/models/GroomingService.js - Booking records
server/models/GroomingBooking.js - Ticket records
server/models/SupportTicket.js - JSON persistence
server/db.js - MongoDB connection
server/config/db.js
Other components
- PetPaws user
Connections 33
- PetPaws user → App shell: uses
README.md - App shell → Role authentication: opens
client/src/App.jsx - App shell → Pet marketplace: renders
client/src/App.jsx - App shell → Pet details: renders
client/src/App.jsx - App shell → Checkout and payment: renders
client/src/App.jsx - App shell → Order tracking: renders
client/src/App.jsx - App shell → Seller portal: renders
client/src/App.jsx - App shell → Vet consultations: renders
client/src/App.jsx - App shell → Grooming and training: renders
client/src/App.jsx - App shell → Customer support: renders
client/src/App.jsx - App shell → REST API: fetches listings
client/src/App.jsx - REST API → Authentication: routes auth
server/server.js - REST API → Pet listings: routes pets
server/server.js - REST API → Orders and tracking: routes orders
server/server.js - REST API → Vet scheduling: routes vets
server/server.js - REST API → Care services: routes services
server/server.js - REST API → Support tickets: routes support
server/server.js - Authentication → User records: reads and writes
server/controllers/authController.js - Authentication → JSON persistence: uses fallback
server/controllers/authController.js - Pet listings → Pet records: reads and writes
server/controllers/petController.js - Pet listings → JSON persistence: uses fallback
server/controllers/petController.js - Orders and tracking → Order records: reads and writes
server/controllers/orderController.js - Orders and tracking → Pet records: updates stock
server/controllers/orderController.js - Orders and tracking → JSON persistence: uses fallback
server/controllers/orderController.js - Vet scheduling → Vet records: reads and writes
server/controllers/vetController.js - Vet scheduling → Appointment records: reads and writes
server/controllers/vetController.js - Vet scheduling → JSON persistence: uses fallback
server/controllers/vetController.js - Care services → Grooming records: reads and writes
server/controllers/serviceController.js - Care services → Booking records: reads and writes
server/controllers/serviceController.js - Care services → JSON persistence: uses fallback
server/controllers/serviceController.js - Support tickets → Ticket records: reads and writes
server/controllers/supportController.js - Support tickets → JSON persistence: uses fallback
server/controllers/supportController.js - REST API → MongoDB connection: connects database
server/server.js