How priyarathod-14/college-connect works
College Connect is a student-facing campus event discovery and registration app. Students browse and filter events, inspect event details, submit a registration, then review or cancel registrations; clubs and a registration dashboard are additional capabilities. React Router dispatches pages, while a shared Context coordinates event and registration data through an API service with localStorage demo/fallback behavior or an optional hosted MockAPI backend. The graph follows explicit imports, calls, and routes; unsampled page internals are represented only where README capabilities support them.
Main entry points: App.jsx Router and shell · api.js API and fallback · Register.jsx Registration form · DataContext.jsx Shared data context
Components 17
Application shell
- Router and shell
src/App.jsx - Navigation
src/components/Navbar.jsx - Footer
src/components/Footer.jsx
Event discovery
- Home page
src/pages/Home.jsx - Event search
src/pages/Events.jsx - Event card
src/components/EventCard.jsx - Event details
src/pages/EventDetails.jsx - Club discovery
src/pages/Clubs.jsx
Student participation
- Registration form
src/pages/Register.jsx - My events
src/pages/MyEvents.jsx
Data services
- Shared data context
src/context/DataContext.jsx - API and fallback
src/services/api.js - Sample events
src/data/seedEvents.js - Browser storage
- Hosted REST API
Campus insights
- Registration dashboard
src/pages/Dashboard.jsx
Other components
- Student
Connections 21
- Student → Navigation: uses navigation
src/components/Navbar.jsx - Router and shell → Navigation: renders
src/App.jsx - Router and shell → Footer: renders
src/App.jsx - Router and shell → Home page: routes to
src/App.jsx - Router and shell → Event search: routes to
src/App.jsx - Router and shell → Event details: routes to
src/App.jsx - Router and shell → Registration form: routes to
src/App.jsx - Router and shell → My events: routes to
src/App.jsx - Router and shell → Club discovery: routes to
src/App.jsx - Router and shell → Registration dashboard: routes to
src/App.jsx - Home page → Event card: renders cards
src/pages/Home.jsx - Event search → Event card: renders cards
src/pages/Events.jsx - Event details → Registration form: links to
src/pages/EventDetails.jsx - Registration form → My events: navigates to
src/pages/Register.jsx - Registration form → Shared data context: submits registration
src/pages/Register.jsx - Shared data context → API and fallback: loads and mutates data
src/context/DataContext.jsx - API and fallback → Sample events: uses fallback seeds
src/services/api.js - API and fallback → Browser storage: reads and writes
src/services/api.js - API and fallback → Hosted REST API: sends REST requests
src/services/api.js - Registration dashboard → Shared data context: reads shared data
src/pages/Dashboard.jsx - My events → Shared data context: uses registration data
src/pages/MyEvents.jsx