How hamdy-ibrahim/campus_core works
CampusCore combines a React student and administrator portal with an Express API backed by a MySQL connection pool. The primary student journey runs from account signup/login through campus discovery and participation to a profile summarizing activity; administrators manage campus services through dedicated pages. The README also describes browser Local Storage, while the sampled backend implements API routes and MySQL access, so the repository appears to contain both client-side and server-side data mechanisms. Unsampled page/API wiring is not inferred; documented capabilities and sampled server routing are shown.
Main entry points: App.jsx Page router · index.js Express API · db.js MySQL pool · Profile.jsx Activity profile
Components 34
Campus portal
- Page router
src/App.jsx - Account signup
src/pages/Signup.jsx - Login
src/pages/Login.jsx - Student dashboard
src/pages/Dashboard.jsx - Activity profile
src/pages/Profile.jsx - Club browsing
src/pages/Clubs.jsx - Club participation
src/pages/ClubDetails.jsx - Event browsing
src/pages/Events.jsx - Event registration
src/pages/EventDetails.jsx - Announcements view
src/pages/Announcements.jsx - Marketplace browsing
src/pages/Marketplace.jsx - Listing details
src/pages/ItemDetails.jsx - Sell listing
src/pages/SellItem.jsx - Maintenance requests
src/pages/Maintenance.jsx - Admin dashboard
src/pages/AdminDashboard.jsx - Club administration
src/pages/AdminClubs.jsx - Event administration
src/pages/AdminEvents.jsx - Announcement administration
src/pages/AdminAnnouncements.jsx - Marketplace administration
src/pages/AdminMarketplace.jsx - Maintenance administration
src/pages/AdminMaintenance.jsx - Student administration
src/pages/AdminStudents.jsx
Campus API
- Express API
server/server/index.js - Signup endpoint
server/server/routes/signup.js - Club endpoints
server/server/routes/clubs.js - Event endpoints
server/server/routes/events.js - Announcement endpoints
server/server/routes/announcements.js - Marketplace endpoints
server/server/routes/marketplace.js - Maintenance endpoints
server/server/routes/maintenance.js - Profile endpoints
server/server/routes/profile.js
Persistence
- MySQL pool
server/server/db.js
Provider integration
- Provider API routes
server/server/integration/bindings.js
Other components
- Student
- Administrator
- FitCoach provider
Connections 42
- Student → Page router: uses
- Administrator → Page router: uses
- Page router → Account signup: routes
src/App.jsx - Page router → Login: routes
src/App.jsx - Page router → Student dashboard: routes
src/App.jsx - Page router → Activity profile: routes
src/App.jsx - Page router → Club browsing: routes
src/App.jsx - Page router → Club participation: routes
src/App.jsx - Page router → Event browsing: routes
src/App.jsx - Page router → Event registration: routes
src/App.jsx - Page router → Announcements view: routes
src/App.jsx - Page router → Marketplace browsing: routes
src/App.jsx - Page router → Listing details: routes
src/App.jsx - Page router → Sell listing: routes
src/App.jsx - Page router → Maintenance requests: routes
src/App.jsx - Page router → Admin dashboard: routes
src/App.jsx - Page router → Student administration: routes
src/App.jsx - Page router → Club administration: routes
src/App.jsx - Page router → Event administration: routes
src/App.jsx - Page router → Announcement administration: routes
src/App.jsx - Page router → Marketplace administration: routes
src/App.jsx - Page router → Maintenance administration: routes
src/App.jsx - Express API → Signup endpoint: mounts
server/server/index.js - Express API → Club endpoints: mounts
server/server/index.js - Express API → Event endpoints: mounts
server/server/index.js - Express API → Announcement endpoints: mounts
server/server/index.js - Express API → Marketplace endpoints: mounts
server/server/index.js - Express API → Maintenance endpoints: mounts
server/server/index.js - Express API → Profile endpoints: mounts
server/server/index.js - Club endpoints → MySQL pool: queries
server/server/routes/clubs.js - Event endpoints → MySQL pool: queries
server/server/routes/events.js - Signup endpoint → MySQL pool: queries
server/server/routes/signup.js - Announcement endpoints → MySQL pool: queries
server/server/routes/announcements.js - Marketplace endpoints → MySQL pool: queries
server/server/routes/marketplace.js - Maintenance endpoints → MySQL pool: queries
server/server/routes/maintenance.js - Activity profile → Club endpoints: fetches memberships
src/pages/Profile.jsx - Activity profile → Event endpoints: fetches registrations
src/pages/Profile.jsx - Activity profile → Marketplace endpoints: fetches listings
src/pages/Profile.jsx - Activity profile → Maintenance endpoints: fetches requests
src/pages/Profile.jsx - Express API → Provider API routes: mounts
server/server/index.js - FitCoach provider → Provider API routes: integrates
- Provider API routes → MySQL pool: queries
server/server/integration/bindings.js