How smdanial/hackathon works
CampusEase is a student-life toolkit with a Next.js interface and Django REST API. Students use it to sign in and explore rooms, library seats, bus tracking, lost-and-found listings, notices, and lab reports; account/profile functions support those experiences. The graph shows the documented frontend/backend boundary and the app-specific API, serialization, and persistence layers. Source excerpts were limited, so internal call wiring and integrations not established by the README or sampled code are omitted.
Main entry points: app Next.js pages · urls.py API routing · api.ts API client · page.tsx Auth screens
Components 32
Student interface
- Next.js pages
Frontend/app - Auth screens
Frontend/app/login/page.tsx - Service screens
Frontend/app/rooms/page.tsx - Library screens
Frontend/app/library/page.tsx - Bus screens
Frontend/app/bus/page.tsx - Lost & found UI
Frontend/app/lost-found/page.tsx - Notices UI
Frontend/app/notices/page.tsx - Lab report UI
Frontend/app/lab-report/page.tsx - API client
Frontend/lib/api.ts
Accounts
- Auth and session
Frontend/lib/auth.ts - Account endpoints
Backend/accounts/views.py - Account data
Backend/accounts/models.py
Campus services
- Room endpoints
Backend/rooms/views.py - Room data
Backend/rooms/models.py - Library endpoints
Backend/library/views.py - Library data
Backend/library/models.py - Bus endpoints
Backend/bus_tracking/views.py - Bus data
Backend/bus_tracking/models.py - Lost-and-found endpoints
Backend/lostfound/views.py - Lost-and-found data
Backend/lostfound/models.py - Notice endpoints
Backend/notices/views.py - Notice data
Backend/notices/models.py - Lab report endpoints
Backend/labreports/views.py - Lab report data
Backend/labreports/models.py
REST API
- API routing
Backend/campusease/urls.py - Room routing
Backend/rooms/urls.py - Library routing
Backend/library/urls.py - Bus routing
Backend/bus_tracking/urls.py - Lost-and-found routing
Backend/lostfound/urls.py - Notice routing
Backend/notices/urls.py - Lab report routing
Backend/labreports/urls.py
Other components
- Student
Connections 38
- Student → Next.js pages: uses
- Next.js pages → Auth screens: opens
- Next.js pages → Service screens: opens
- Next.js pages → Library screens: opens
- Next.js pages → Bus screens: opens
- Next.js pages → Lost & found UI: opens
- Next.js pages → Notices UI: opens
- Next.js pages → Lab report UI: opens
- Auth screens → Auth and session: uses
- Auth screens → API client: requests
- Auth and session → API client: requests
- Service screens → API client: requests
- Library screens → API client: requests
- Bus screens → API client: requests
- Lost & found UI → API client: requests
- Notices UI → API client: requests
- Lab report UI → API client: requests
- API client → API routing: calls
- API routing → Account endpoints: dispatches
- API routing → Room routing: dispatches
- API routing → Library routing: dispatches
- API routing → Bus routing: dispatches
- API routing → Lost-and-found routing: dispatches
- API routing → Notice routing: dispatches
- API routing → Lab report routing: dispatches
- Room routing → Room endpoints: dispatches
- Library routing → Library endpoints: dispatches
- Bus routing → Bus endpoints: dispatches
- Lost-and-found routing → Lost-and-found endpoints: dispatches
- Notice routing → Notice endpoints: dispatches
- Lab report routing → Lab report endpoints: dispatches
- Account endpoints → Account data: accesses
- Room endpoints → Room data: accesses
- Library endpoints → Library data: accesses
- Bus endpoints → Bus data: accesses
- Lost-and-found endpoints → Lost-and-found data: accesses
- Notice endpoints → Notice data: accesses
- Lab report endpoints → Lab report data: accesses