How kalikirihema/pet-adopt works
This is a pet-adoption portal for browsing animals, submitting and tracking adoption applications, donating, volunteering, contacting the shelter, and administering records. The primary path runs from visitor browsing through an adoption submission, backend processing and persistence, then public application tracking and staff status management. Other README-documented public and admin workflows are represented as separate capabilities. The source index and excerpts support routing and selected controller/model interactions; unsampled controller and page internals are not inferred beyond documented responsibilities.
Main entry points: server.js Express API · App.jsx Page router · HomePage.jsx Pet browsing · api.js API address
Components 33
Visitor website
- Page router
frontend/src/App.jsx - Pet browsing
frontend/src/pages/HomePage.jsx - Dog and cat pages
frontend/src/pages/MoreDogsPage.jsx - Adoption form
frontend/src/components/AdoptModal.jsx - Application tracking
frontend/src/components/TrackApplicationModal.jsx - Donation page
frontend/src/pages/DonatePage.jsx - Volunteer page
frontend/src/pages/VolunteerPage.jsx - Contact form
frontend/src/components/ContactSection.jsx - Admin console
frontend/src/pages/AdminPage.jsx - API address
frontend/src/api.js
API and access
- Express API
backendfolder/server.js - Pet routes
backendfolder/routes/petRoutes.js - Adoption routes
backendfolder/routes/adoptionRoutes.js - Donation routes
backendfolder/routes/donationRoutes.js - Admin routes
backendfolder/routes/adminRoutes.js - Contact routes
backendfolder/routes/contactRoutes.js - Volunteer routes
backendfolder/routes/volunteerRoutes.js - Admin authorization
backendfolder/middleware/authMiddleware.js
Shelter operations
- Pet catalog management
backendfolder/controllers/petController.js - Adoption workflow
backendfolder/controllers/adoptionController.js - Donation handling
backendfolder/controllers/donationController.js - Admin authentication
backendfolder/controllers/adminController.js - Contact handling
backendfolder/controllers/contactController.js - Volunteer intake
backendfolder/controllers/volunteerController.js
Persistence and messaging
- Pet records
backendfolder/models/Pet.js - Adoption records
backendfolder/models/Adoption.js - Donation records
backendfolder/models/Donation.js - Contact records
backendfolder/models/Contact.js - Volunteer records
backendfolder/models/Volunteer.js - Email notifications
backendfolder/services/emailService.js
Other components
- Visitor
- MongoDB
- Resend email service
Connections 44
- Visitor → Page router: opens
- Page router → Pet browsing: routes to
frontend/src/App.jsx - Page router → Dog and cat pages: routes to
frontend/src/App.jsx - Page router → Donation page: routes to
frontend/src/App.jsx - Page router → Volunteer page: routes to
frontend/src/App.jsx - Page router → Admin console: routes to
frontend/src/App.jsx - Pet browsing → Adoption form: opens
frontend/src/pages/HomePage.jsx - Pet browsing → Application tracking: opens
frontend/src/pages/HomePage.jsx - Dog and cat pages → Adoption form: opens
frontend/src/pages/MoreDogsPage.jsx - Donation page → Contact form: renders
frontend/src/pages/DonatePage.jsx - Pet browsing → Contact form: renders
frontend/src/pages/HomePage.jsx - Adoption form → API address: uses
frontend/src/components/AdoptModal.jsx - Application tracking → API address: uses
frontend/src/components/TrackApplicationModal.jsx - Admin console → API address: uses
frontend/src/pages/AdminPage.jsx - API address → Express API: targets API
- Express API → Pet routes: mounts
backendfolder/server.js - Express API → Adoption routes: mounts
backendfolder/server.js - Express API → Donation routes: mounts
backendfolder/server.js - Express API → Admin routes: mounts
backendfolder/server.js - Express API → Contact routes: mounts
backendfolder/server.js - Express API → Volunteer routes: mounts
backendfolder/server.js - Pet routes → Pet catalog management: dispatches
backendfolder/routes/petRoutes.js - Adoption routes → Adoption workflow: dispatches
backendfolder/routes/adoptionRoutes.js - Donation routes → Donation handling: dispatches
backendfolder/routes/donationRoutes.js - Admin routes → Admin authentication: dispatches
backendfolder/routes/adminRoutes.js - Contact routes → Contact handling: dispatches
backendfolder/routes/contactRoutes.js - Volunteer routes → Volunteer intake: dispatches
backendfolder/routes/volunteerRoutes.js - Pet routes → Admin authorization: guards writes
backendfolder/routes/petRoutes.js - Adoption routes → Admin authorization: guards admin actions
backendfolder/routes/adoptionRoutes.js - Donation routes → Admin authorization: guards admin actions
backendfolder/routes/donationRoutes.js - Pet catalog management → Pet records: queries
backendfolder/controllers/petController.js - Adoption workflow → Adoption records: reads and writes
backendfolder/controllers/adoptionController.js - Donation handling → Donation records: reads and writes
backendfolder/controllers/donationController.js - Contact handling → Contact records: uses
backendfolder/controllers/contactController.js - Volunteer intake → Volunteer records: uses
backendfolder/controllers/volunteerController.js - Adoption workflow → Email notifications: sends notices
backendfolder/controllers/adoptionController.js - Donation handling → Email notifications: sends receipts
backendfolder/controllers/donationController.js - Email notifications → Resend email service: sends via API
backendfolder/services/emailService.js - Express API → MongoDB: connects
backendfolder/server.js - Pet records → MongoDB: persists in
- Adoption records → MongoDB: persists in
- Donation records → MongoDB: persists in
- Contact records → MongoDB: persists in
- Volunteer records → MongoDB: persists in