How ezeehere/campusstay works
CampusStay is a campus-focused accommodation marketplace. Students and the public discover approved stays, inspect details, and contact owners; owners submit listings and track review status, while administrators review and manage submissions. Separate student and owner accounts provide saved listings, profiles, owner tools, and analytics. The graph follows routes and calls shown in excerpts, with README statements used for documented workflows; unsampled feature internals and server-side analytics wiring are not inferred.
Main entry points: App.jsx Route dispatcher · listings.js Listing and status data · OwnerDashboard.jsx Owner dashboard · config.js Firebase services
Components 21
Public discovery
- Listing search
src/components/student/StudentListingSection.jsx - Listing details
src/pages/public/ListingDetailsPage.jsx
Listing operations
- Listing and status data
src/firebase/listings.js - Listing submission
src/components/public/SubmitListingForm.jsx - Image uploads
src/cloudinary/uploadImages.js - Submission status check
src/pages/public/CheckStatus.jsx
Account experiences
- Student dashboard
src/pages/student/StudentDashboard.jsx - Student authentication
src/firebase/studentAuth.js - Student profiles
src/firebase/students.js - Saved listings
src/firebase/savedListings.js - Owner dashboard
src/pages/owner/OwnerDashboard.jsx - Owner authentication
src/firebase/ownerAuth.js - Owner profiles
src/firebase/owners.js
Admin and analytics
- Admin listing review
src/pages/admin/AdminDashboard.jsx - Listing detail editor
src/components/admin/AdminListingDetailsModal.jsx - Analytics services
src/firebase/analytics.js - Analytics endpoints
netlify/functions/_analytics-core.cjs
Application services
- Route dispatcher
src/App.jsx - Firebase services
src/firebase/config.js
Other components
- Student or visitor
- Cloudinary
Connections 30
- Student or visitor → Route dispatcher: opens app
src/App.jsx - Route dispatcher → Listing search: routes to
src/App.jsx - Route dispatcher → Listing details: routes to
src/App.jsx - Route dispatcher → Listing submission: routes to
src/App.jsx - Route dispatcher → Submission status check: routes to
src/App.jsx - Route dispatcher → Student dashboard: routes to
src/App.jsx - Route dispatcher → Owner dashboard: routes to
src/App.jsx - Route dispatcher → Admin listing review: routes to
src/App.jsx - Listing search → Listing and status data: loads approved
src/components/student/StudentListingSection.jsx - Listing search → Saved listings: loads saved
src/components/student/StudentListingSection.jsx - Listing details → Listing and status data: loads listing
src/pages/public/ListingDetailsPage.jsx - Listing submission → Image uploads: uploads images
src/components/public/SubmitListingForm.jsx - Listing submission → Listing and status data: saves submission
src/components/public/SubmitListingForm.jsx - Image uploads → Cloudinary: uploads files
README.md - Submission status check → Listing and status data: checks status
README.md - Admin listing review → Listing and status data: manages listings
src/pages/admin/AdminDashboard.jsx - Admin listing review → Listing detail editor: opens details
src/pages/admin/AdminDashboard.jsx - Student dashboard → Student authentication: authenticates
src/pages/student/StudentDashboard.jsx - Student dashboard → Student profiles: loads profile
src/pages/student/StudentDashboard.jsx - Student authentication → Student profiles: ensures profile
src/firebase/studentAuth.js - Owner dashboard → Listing and status data: loads listings
src/pages/owner/OwnerDashboard.jsx - Owner dashboard → Owner profiles: loads profile
src/pages/owner/OwnerDashboard.jsx - Owner dashboard → Owner authentication: logs out
src/pages/owner/OwnerDashboard.jsx - Owner authentication → Owner profiles: ensures profile
src/firebase/ownerAuth.js - Listing and status data → Firebase services: reads and writes
src/firebase/listings.js - Student profiles → Firebase services: stores profile
src/firebase/students.js - Owner profiles → Firebase services: stores profile
src/firebase/owners.js - Saved listings → Firebase services: stores saves
- Listing details → Analytics services: records activity
src/pages/public/ListingDetailsPage.jsx - Analytics services → Analytics endpoints: requests analytics