# ceaverseadmin/ceaverse architecture

> Architecture diagram of the GitHub repository ceaverseadmin/ceaverse, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ceaverseadmin/ceaverse
- Repository: https://github.com/ceaverseadmin/ceaverse

## Overview

EA-CSC Web Portal is a student-facing academic and campus-services portal with a protected administration area. Students browse landing information, ebooks, floor plans and wayfinding, and submit or track lost-and-found reports or student-voice posts. The SPA routes these experiences through shared API services to Django REST endpoints and domain apps; administrators manage content, users and moderation. The README documents these capabilities, while sampled frontend service code shows API calls and settings show shared authentication, pagination and optional media storage. Backend feature internals were not sampled, so their links are documented at the API boundary.

Main entry points: [`backend/config/urls.py`](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/config/urls.py) (API route dispatch), [`frontend/src/router.tsx`](https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/router.tsx) (Portal routes), [`frontend/src/lib/api.ts`](https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/api.ts) (HTTP client), [`frontend/src/pages`](https://github.com/ceaverseadmin/ceaverse/tree/main/frontend/src/pages) (Public experiences)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Student portal"]
  node_public_pages["Public experiences"]
end

subgraph group_admin["Administration"]
  node_admin_pages["Admin workspaces"]
end

subgraph group_front["Frontend platform"]
  node_router["Portal routes<br/>[router.tsx]"]
  node_auth_ui["Auth provider<br/>[AuthProvider.tsx]"]
  node_auth_client["Auth client<br/>[auth.ts]"]
  node_public_services["Public API services<br/>[services.ts]"]
  node_admin_services["Admin API services<br/>[adminServices.ts]"]
  node_api_client["HTTP client<br/>[api.ts]"]
end

subgraph group_backend["Backend services"]
  node_django_routes["API route dispatch<br/>[urls.py]"]
  node_accounts["Accounts and approvals<br/>[views.py]"]
  node_landing["Landing content<br/>[views.py]"]
  node_ebooks["Ebook library<br/>[views.py]"]
  node_lost_found["Lost and found<br/>[views.py]"]
  node_voice["Student voice<br/>[views.py]"]
  node_floorplans["Floor plans<br/>[views.py]"]
  node_wayfinding["Wayfinding directory<br/>[views.py]"]
  node_dashboard["Admin dashboard<br/>[views.py]"]
end

subgraph group_infra["Shared backend infrastructure"]
  node_settings["API and storage config<br/>[base.py]"]
  node_media_storage["Media storage<br/>[storage.py]"]
  node_database[("Application database")]
end

node_students(("Students"))
node_admins(("Administrators"))
node_cloudinary["Cloudinary"]

node_students -->|"use portal"| node_router
node_admins -->|"use portal"| node_router
node_router -->|"routes public"| node_public_pages
node_router -->|"routes admin"| node_admin_pages
node_router -->|"guards admin"| node_auth_ui
node_auth_ui -->|"calls auth"| node_auth_client
node_public_pages -->|"requests content"| node_public_services
node_public_pages -->|"submits reports"| node_public_services
node_admin_pages -->|"manages portal"| node_admin_services
node_public_services -->|"sends requests"| node_api_client
node_admin_services -->|"sends requests"| node_api_client
node_auth_client -->|"sends auth"| node_api_client
node_api_client -->|"calls API"| node_django_routes
node_django_routes -.->|"dispatches auth"| node_accounts
node_django_routes -.->|"dispatches content"| node_landing
node_django_routes -.->|"dispatches library"| node_ebooks
node_django_routes -.->|"dispatches reports"| node_lost_found
node_django_routes -.->|"dispatches posts"| node_voice
node_django_routes -.->|"dispatches plans"| node_floorplans
node_django_routes -.->|"dispatches locations"| node_wayfinding
node_django_routes -.->|"dispatches metrics"| node_dashboard
node_settings -->|"configures API"| node_django_routes
node_settings -->|"selects storage"| node_media_storage
node_media_storage -.->|"stores media"| node_cloudinary
node_accounts -.->|"reads and writes"| node_database
node_landing -.->|"reads and writes"| node_database
node_ebooks -.->|"reads and writes"| node_database
node_lost_found -.->|"reads and writes"| node_database
node_voice -.->|"reads and writes"| node_database
node_floorplans -.->|"reads and writes"| node_database
node_wayfinding -.->|"reads and writes"| node_database

click node_router "https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/router.tsx"
click node_public_pages "https://github.com/ceaverseadmin/ceaverse/tree/main/frontend/src/pages"
click node_admin_pages "https://github.com/ceaverseadmin/ceaverse/tree/main/frontend/src/admin"
click node_auth_ui "https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/auth/AuthProvider.tsx"
click node_auth_client "https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/auth.ts"
click node_public_services "https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/services.ts"
click node_admin_services "https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/adminServices.ts"
click node_api_client "https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/api.ts"
click node_django_routes "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/config/urls.py"
click node_accounts "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/accounts/views.py"
click node_landing "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/landing/views.py"
click node_ebooks "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/ebooks/views.py"
click node_lost_found "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/lost_found/views.py"
click node_voice "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/student_voice/views.py"
click node_floorplans "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/floorplans/views.py"
click node_wayfinding "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/wayfinding/views.py"
click node_dashboard "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/dashboard/views.py"
click node_settings "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/config/settings/base.py"
click node_media_storage "https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/common/storage.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_public_pages toneBlue
class node_admin_pages toneAmber
class node_router,node_auth_ui,node_auth_client,node_public_services,node_admin_services,node_api_client toneMint
class node_django_routes,node_accounts,node_landing,node_ebooks,node_lost_found,node_voice,node_floorplans,node_wayfinding,node_dashboard toneRose
class node_settings,node_media_storage,node_database,node_students,node_admins,node_cloudinary toneIndigo
```

## Components

### Student portal

- [Public experiences](https://github.com/ceaverseadmin/ceaverse/tree/main/frontend/src/pages): `frontend/src/pages`

### Administration

- [Admin workspaces](https://github.com/ceaverseadmin/ceaverse/tree/main/frontend/src/admin): `frontend/src/admin`

### Frontend platform

- [Portal routes](https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/router.tsx): `frontend/src/router.tsx`
- [Auth provider](https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/auth/AuthProvider.tsx): `frontend/src/auth/AuthProvider.tsx`
- [Auth client](https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/auth.ts): `frontend/src/lib/auth.ts`
- [Public API services](https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/services.ts): `frontend/src/lib/services.ts`
- [Admin API services](https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/adminServices.ts): `frontend/src/lib/adminServices.ts`
- [HTTP client](https://github.com/ceaverseadmin/ceaverse/blob/main/frontend/src/lib/api.ts): `frontend/src/lib/api.ts`

### Backend services

- [API route dispatch](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/config/urls.py): `backend/config/urls.py`
- [Accounts and approvals](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/accounts/views.py): `backend/apps/accounts/views.py`
- [Landing content](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/landing/views.py): `backend/apps/landing/views.py`
- [Ebook library](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/ebooks/views.py): `backend/apps/ebooks/views.py`
- [Lost and found](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/lost_found/views.py): `backend/apps/lost_found/views.py`
- [Student voice](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/student_voice/views.py): `backend/apps/student_voice/views.py`
- [Floor plans](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/floorplans/views.py): `backend/apps/floorplans/views.py`
- [Wayfinding directory](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/wayfinding/views.py): `backend/apps/wayfinding/views.py`
- [Admin dashboard](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/dashboard/views.py): `backend/apps/dashboard/views.py`

### Shared backend infrastructure

- [API and storage config](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/config/settings/base.py): `backend/config/settings/base.py`
- [Media storage](https://github.com/ceaverseadmin/ceaverse/blob/main/backend/apps/common/storage.py): `backend/apps/common/storage.py`
- **Application database**

### Other components

- **Students**
- **Administrators**
- **Cloudinary**

## Connections

- Students → Portal routes: use portal (evidence: `README.md`)
- Administrators → Portal routes: use portal (evidence: `README.md`)
- Portal routes → Public experiences: routes public (evidence: `frontend/src/router.tsx`)
- Portal routes → Admin workspaces: routes admin (evidence: `frontend/src/router.tsx`)
- Portal routes → Auth provider: guards admin (evidence: `frontend/src/router.tsx`)
- Auth provider → Auth client: calls auth (evidence: `frontend/src/auth/AuthProvider.tsx`)
- Public experiences → Public API services: requests content (evidence: `frontend/src/pages/HomePage.tsx`)
- Public experiences → Public API services: submits reports (evidence: `frontend/src/pages/LostFoundSubmitPage.tsx`)
- Admin workspaces → Admin API services: manages portal (evidence: `frontend/src/admin/ContentPage.tsx`)
- Public API services → HTTP client: sends requests (evidence: `frontend/src/lib/services.ts`)
- Admin API services → HTTP client: sends requests (evidence: `frontend/src/lib/adminServices.ts`)
- Auth client → HTTP client: sends auth (evidence: `frontend/src/lib/auth.ts`)
- HTTP client → API route dispatch: calls API (evidence: `frontend/src/lib/api.ts`)
- API route dispatch → Accounts and approvals: dispatches auth
- API route dispatch → Landing content: dispatches content
- API route dispatch → Ebook library: dispatches library
- API route dispatch → Lost and found: dispatches reports
- API route dispatch → Student voice: dispatches posts
- API route dispatch → Floor plans: dispatches plans
- API route dispatch → Wayfinding directory: dispatches locations
- API route dispatch → Admin dashboard: dispatches metrics
- API and storage config → API route dispatch: configures API (evidence: `backend/config/settings/base.py`)
- API and storage config → Media storage: selects storage (evidence: `backend/config/settings/base.py`)
- Media storage → Cloudinary: stores media
- Accounts and approvals → Application database: reads and writes
- Landing content → Application database: reads and writes
- Ebook library → Application database: reads and writes
- Lost and found → Application database: reads and writes
- Student voice → Application database: reads and writes
- Floor plans → Application database: reads and writes
- Wayfinding directory → Application database: reads and writes
