How yusufcanesener/sahiplendirme-fullstack works
PawFinder is an animal-adoption web application with a primary Express/Mongoose API for accounts, adoption listings, and blogs, plus a separate Express server exposing mock pet and shelter endpoints. The main user workflow is browsing or managing adoption listings: a user interacts with the public pages, the API handles requests, and MongoDB-backed models persist domain records. Account login and role-based navigation, blog publishing, maps, donations, and shelter/pet browsing are additional product capabilities. The README is empty; unsampled pages and routes are represented only where their paths are present in the tree, without inferred API links.
Main entry points: app.js Primary API · index.js Pet API server · shelters.html Adoption pages · navbar.js Role-aware navigation
Components 23
Public web experience
- Adoption pages
public/shelters.html - Account pages
public/login.html - Blog pages
public/blog.html - Profile and roles
public/profile.html - Maps and donations
public/maps.html - Role-aware navigation
public/js/navbar.js - Notifications
public/js/notification.js - Login client
public/js/login.js - Pet and shelter pages
public/pets.html
Core API
- Primary API
app.js - Account service
app.js - Ad service
app.js - Blog service
app.js - Role administration
app.js
Domain records
- User records
models/User.js - Ad records
models/Ad.js - Blog records
models/Blog.js
Mock pet services
- Pet API server
public/server/index.js - Pet endpoints
public/server/routes/pets.js - Shelter endpoints
public/server/routes/shelters.js - Mock auth endpoints
public/server/routes/auth.js
Other components
- Visitor
- MongoDB
Connections 24
- Visitor → Adoption pages: browses
- Visitor → Account pages: uses
- Adoption pages → Primary API
- Account pages → Login client: loads
- Login client → Primary API: posts login
public/js/login.js - Visitor → Blog pages: reads
- Visitor → Profile and roles: manages account
- Visitor → Maps and donations: explores
- Visitor → Pet and shelter pages: browses
- Role-aware navigation → Profile and roles: links to
public/js/navbar.js - Role-aware navigation → Adoption pages: links to
public/js/navbar.js - Primary API → Account service: routes account requests
app.js - Primary API → Ad service: routes ad requests
app.js - Primary API → Blog service: routes blog requests
app.js - Primary API → Role administration: handles roles
app.js - Account service → User records: reads and writes
app.js - Ad service → Ad records: reads and writes
app.js - Blog service → Blog records: reads and writes
app.js - Role administration → User records: updates roles
app.js - Primary API → MongoDB: connects
app.js - Pet API server → Mock auth endpoints: mounts
public/server/index.js - Pet API server → Pet endpoints: mounts
public/server/index.js - Pet API server → Shelter endpoints: mounts
public/server/index.js - Pet and shelter pages → Pet API server