How kr0gha/petfosterconnect-projetoclock works
This is an animal-adoption platform: visitors browse animals and associations, while volunteers and associations authenticate and manage adoption applications. The graph covers the React client, Express API, and database-backed domain services. API routes and controller responsibilities are supported by sampled source and the SOURCE INDEX; client-to-API links are dashed because the relevant request code was not sampled. The README is empty.
Main entry points: App.jsx Routes and shell · animals.router.ts Animal routes · association.router.ts Association routes · router.ts Route registry
Components 28
Web client
- Client entry
client/src/main.jsx - Routes and shell
client/src/App.jsx - Sign-in and registration
client/src/components/pages/ConnexionRegisterPage.jsx - Client auth state
client/src/contexts/AuthContext.jsx - Animal browsing
client/src/components/pages/AnimalsPage.jsx - Animal detail
client/src/components/pages/AnimalPage.jsx - Association directory
client/src/components/pages/AssociationsPage.jsx - Association profile
client/src/components/pages/AssociationDetailPage.jsx - Adoption applications
client/src/components/pages/OfferPage.jsx - Volunteer profile
client/src/components/pages/VolunteerPage.jsx
API delivery
- API server
API/index.ts - Route registry
API/routers/router.ts - Authentication routes
API/routers/auth.router.ts - Animal routes
API/routers/animals.router.ts - Association routes
API/routers/association.router.ts - Offer routes
API/routers/offer.router.ts - Volunteer routes
API/routers/volunteer.router.ts - Session verification
API/middleware/auth.middleware.ts - Request validation
API/middleware/validate.ts
Adoption services
- Authentication
API/controllers/authController.ts - Animal management
API/controllers/animalController.ts - Association management
API/controllers/associationController.ts - Application decisions
API/controllers/offerController.ts - Volunteer management
API/controllers/volunteerController.ts
Data and integrations
- Image upload
API/middleware/uploadToImgBB.middleware.ts - Prisma database access
API/prisma/client.ts
Other components
- Visitor or member
- ImgBB
Connections 47
- Visitor or member → Client entry: uses
- Client entry → Routes and shell: renders
client/src/main.jsx - Routes and shell → Sign-in and registration: routes to
client/src/App.jsx - Routes and shell → Animal browsing: routes to
client/src/App.jsx - Routes and shell → Animal detail: routes to
client/src/App.jsx - Routes and shell → Association directory: routes to
client/src/App.jsx - Routes and shell → Association profile: routes to
client/src/App.jsx - Routes and shell → Adoption applications: routes to
client/src/App.jsx - Routes and shell → Volunteer profile: routes to
client/src/App.jsx - Routes and shell → Client auth state: reads auth
client/src/App.jsx - Sign-in and registration → Client auth state: updates session
client/src/components/pages/ConnexionRegisterPage.jsx - API server → Route registry: mounts
API/index.ts - Route registry → Authentication routes: registers
API/routers/router.ts - Route registry → Animal routes: registers
API/routers/router.ts - Route registry → Association routes: registers
API/routers/router.ts - Route registry → Offer routes: registers
API/routers/router.ts - Route registry → Volunteer routes: registers
API/routers/router.ts - Authentication routes → Authentication: dispatches
API/routers/auth.router.ts - Animal routes → Animal management: dispatches
API/routers/animals.router.ts - Association routes → Association management: dispatches
API/routers/association.router.ts - Offer routes → Application decisions: dispatches
API/routers/offer.router.ts - Volunteer routes → Volunteer management: dispatches
API/routers/volunteer.router.ts - Authentication routes → Session verification: protects session lookup
API/routers/auth.router.ts - Animal routes → Session verification: protects writes
API/routers/animals.router.ts - Animal routes → Request validation: validates input
API/routers/animals.router.ts - Animal routes → Image upload: uploads images
API/routers/animals.router.ts - Association routes → Session verification: protects changes
API/routers/association.router.ts - Association routes → Request validation: validates input
API/routers/association.router.ts - Association routes → Image upload: uploads images
API/routers/association.router.ts - Authentication routes → Request validation: validates registration
API/routers/auth.router.ts - Authentication routes → Image upload: uploads images
API/routers/auth.router.ts - Volunteer routes → Session verification: protects routes
API/routers/volunteer.router.ts - Volunteer routes → Request validation: validates input
API/routers/volunteer.router.ts - Volunteer routes → Image upload: uploads images
API/routers/volunteer.router.ts - Animal management → Prisma database access: reads and writes
API/controllers/animalController.ts - Association management → Prisma database access: reads and writes
API/controllers/associationController.ts - Application decisions → Prisma database access: updates applications and animals
API/controllers/offerController.ts - Authentication → Prisma database access: reads and writes
API/controllers/authController.ts - Volunteer management → Prisma database access: reads and writes
API/controllers/volunteerController.ts - Image upload → ImgBB: uploads image
API/middleware/uploadToImgBB.middleware.ts - Animal browsing → Animal routes: requests animal data
- Animal detail → Animal routes: requests animal data
- Association directory → Association routes: requests directory data
- Association profile → Association routes: requests profile data
- Sign-in and registration → Authentication routes: submits credentials
- Adoption applications → Offer routes: manages applications
- Volunteer profile → Volunteer routes: requests profile data