# marlongelardo/acapp-main architecture

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

- Interactive diagram: https://gitdiagram.com/marlongelardo/acapp-main
- Repository: https://github.com/marlongelardo/acapp-main

## Overview

Acapp is a role-based campus application with student, faculty, and administrator experiences. The main workflow is a user registering or logging in through the web interface, which calls the .NET API; the API validates credentials or creates an account using the user database. The frontend also routes users to role-specific campus features, including classes, announcements, grades, community, and administration. A second, smaller frontend exists under acapp-api/src. The README is empty, so feature coverage comes from the route map; unsampled feature internals and their data connections are not asserted.

Main entry points: [`Acapp_v1/src/App.jsx`](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/App.jsx) (Main app routes), [`Acapp_v1/src/services/authService.js`](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/services/authService.js) (Auth client), [`Acapp_v1/src/pages/Login.jsx`](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/Login.jsx) (Login screen), [`Acapp_v1/src/pages/Register.jsx`](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/Register.jsx) (Registration screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry and auth"]
  node_router["Main app routes<br/>[App.jsx]"]
  node_login["Login screen<br/>[Login.jsx]"]
  node_register["Registration screen<br/>[Register.jsx]"]
  node_authclient["Auth client<br/>[authService.js]"]
  node_phone["Phone shell<br/>[PhoneShell.jsx]"]
  node_compactclient["Alternate auth client<br/>[authService.js]"]
  node_compactroutes["Alternate app routes<br/>[App.jsx]"]
end

subgraph group_student["Student experience"]
  node_studentroutes["Student features"]
  node_studentinbox["Student inbox<br/>[StudentInbox.jsx]"]
  node_studentnav["Student navigation<br/>[BottomNav.jsx]"]
end

subgraph group_faculty["Faculty experience"]
  node_facultyroutes["Faculty features"]
  node_facultynav["Faculty navigation"]
end

subgraph group_admin["Administration"]
  node_adminroutes["Admin features"]
  node_admininbox["Admin inbox<br/>[AdminInbox.jsx]"]
  node_adminusers["User management"]
  node_adminnav["Admin navigation<br/>[AdminBottomNav.jsx]"]
end

subgraph group_backend["Authentication API"]
  node_controller["Auth endpoints<br/>[AuthController.cs]"]
  node_authservice["Auth operations<br/>[AuthService.cs]"]
  node_dbcontext["User data access<br/>[AppDbContext.cs]"]
  node_userentity["User model<br/>[User.cs]"]
  node_db[("Configured database")]
end

node_user(("Campus user"))

node_user -->|"opens"| node_router
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_register
node_router -->|"routes to"| node_studentroutes
node_router -->|"routes to"| node_facultyroutes
node_router -->|"routes to"| node_adminroutes
node_login -->|"calls login"| node_authclient
node_register -->|"calls register"| node_authclient
node_login -->|"renders"| node_phone
node_register -->|"renders"| node_phone
node_studentroutes -->|"includes"| node_studentinbox
node_studentinbox -->|"renders"| node_studentnav
node_facultyroutes -.->|"uses"| node_facultynav
node_adminroutes -->|"includes"| node_admininbox
node_adminroutes -->|"includes"| node_adminusers
node_admininbox -.->|"uses"| node_adminnav
node_adminusers -.->|"uses"| node_authclient
node_authclient -->|"HTTP requests"| node_controller
node_controller -->|"delegates"| node_authservice
node_authservice -->|"queries and saves"| node_dbcontext
node_dbcontext -->|"maps"| node_userentity
node_dbcontext -.->|"persists users"| node_db
node_compactroutes -.->|"auth screens use"| node_compactclient
node_compactclient -->|"HTTP requests"| node_controller

click node_router "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/App.jsx"
click node_login "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/Login.jsx"
click node_register "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/Register.jsx"
click node_authclient "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/services/authService.js"
click node_phone "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/components/PhoneShell.jsx"
click node_studentroutes "https://github.com/marlongelardo/acapp-main/tree/main/Acapp_v1/src/pages/student"
click node_studentinbox "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/student/StudentInbox.jsx"
click node_studentnav "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/components/BottomNav.jsx"
click node_facultyroutes "https://github.com/marlongelardo/acapp-main/tree/main/Acapp_v1/src/pages/faculty"
click node_facultynav "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/components/FacultyBottomNav.jsx"
click node_adminroutes "https://github.com/marlongelardo/acapp-main/tree/main/Acapp_v1/src/pages/admin"
click node_admininbox "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/admin/AdminInbox.jsx"
click node_adminusers "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/admin/AdminUserManagement.jsx"
click node_adminnav "https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/components/AdminBottomNav.jsx"
click node_controller "https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/Controllers/AuthController.cs"
click node_authservice "https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/Services/AuthService.cs"
click node_dbcontext "https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/Data/AppDbContext.cs"
click node_userentity "https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/Models/User.cs"
click node_compactclient "https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/src/services/authService.js"
click node_compactroutes "https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/src/App.jsx"

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_router,node_login,node_register,node_authclient,node_phone,node_compactclient,node_compactroutes,node_user toneBlue
class node_studentroutes,node_studentinbox,node_studentnav toneAmber
class node_facultyroutes,node_facultynav toneMint
class node_adminroutes,node_admininbox,node_adminusers,node_adminnav toneRose
class node_controller,node_authservice,node_dbcontext,node_userentity,node_db toneIndigo
```

## Components

### Web entry and auth

- [Main app routes](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/App.jsx): `Acapp_v1/src/App.jsx`
- [Login screen](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/Login.jsx): `Acapp_v1/src/pages/Login.jsx`
- [Registration screen](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/Register.jsx): `Acapp_v1/src/pages/Register.jsx`
- [Auth client](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/services/authService.js): `Acapp_v1/src/services/authService.js`
- [Phone shell](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/components/PhoneShell.jsx): `Acapp_v1/src/components/PhoneShell.jsx`
- [Alternate auth client](https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/src/services/authService.js): `acapp-api/src/services/authService.js`
- [Alternate app routes](https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/src/App.jsx): `acapp-api/src/App.jsx`

### Student experience

- [Student features](https://github.com/marlongelardo/acapp-main/tree/main/Acapp_v1/src/pages/student): `Acapp_v1/src/pages/student`
- [Student inbox](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/student/StudentInbox.jsx): `Acapp_v1/src/pages/student/StudentInbox.jsx`
- [Student navigation](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/components/BottomNav.jsx): `Acapp_v1/src/components/BottomNav.jsx`

### Faculty experience

- [Faculty features](https://github.com/marlongelardo/acapp-main/tree/main/Acapp_v1/src/pages/faculty): `Acapp_v1/src/pages/faculty`
- [Faculty navigation](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/components/FacultyBottomNav.jsx): `Acapp_v1/src/components/FacultyBottomNav.jsx`

### Administration

- [Admin features](https://github.com/marlongelardo/acapp-main/tree/main/Acapp_v1/src/pages/admin): `Acapp_v1/src/pages/admin`
- [Admin inbox](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/admin/AdminInbox.jsx): `Acapp_v1/src/pages/admin/AdminInbox.jsx`
- [User management](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/pages/admin/AdminUserManagement.jsx): `Acapp_v1/src/pages/admin/AdminUserManagement.jsx`
- [Admin navigation](https://github.com/marlongelardo/acapp-main/blob/main/Acapp_v1/src/components/AdminBottomNav.jsx): `Acapp_v1/src/components/AdminBottomNav.jsx`

### Authentication API

- [Auth endpoints](https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/Controllers/AuthController.cs): `acapp-api/Controllers/AuthController.cs`
- [Auth operations](https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/Services/AuthService.cs): `acapp-api/Services/AuthService.cs`
- [User data access](https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/Data/AppDbContext.cs): `acapp-api/Data/AppDbContext.cs`
- [User model](https://github.com/marlongelardo/acapp-main/blob/main/acapp-api/Models/User.cs): `acapp-api/Models/User.cs`
- **Configured database**

### Other components

- **Campus user**

## Connections

- Campus user → Main app routes: opens
- Main app routes → Login screen: routes to (evidence: `Acapp_v1/src/App.jsx`)
- Main app routes → Registration screen: routes to (evidence: `Acapp_v1/src/App.jsx`)
- Main app routes → Student features: routes to (evidence: `Acapp_v1/src/App.jsx`)
- Main app routes → Faculty features: routes to (evidence: `Acapp_v1/src/App.jsx`)
- Main app routes → Admin features: routes to (evidence: `Acapp_v1/src/App.jsx`)
- Login screen → Auth client: calls login (evidence: `Acapp_v1/src/pages/Login.jsx`)
- Registration screen → Auth client: calls register (evidence: `Acapp_v1/src/pages/Register.jsx`)
- Login screen → Phone shell: renders (evidence: `Acapp_v1/src/pages/Login.jsx`)
- Registration screen → Phone shell: renders (evidence: `Acapp_v1/src/pages/Register.jsx`)
- Student features → Student inbox: includes (evidence: `Acapp_v1/src/App.jsx`)
- Student inbox → Student navigation: renders (evidence: `Acapp_v1/src/pages/student/StudentInbox.jsx`)
- Faculty features → Faculty navigation: uses (evidence: `Acapp_v1/src/pages/faculty/FacultyDashboard.jsx`)
- Admin features → Admin inbox: includes (evidence: `Acapp_v1/src/App.jsx`)
- Admin features → User management: includes (evidence: `Acapp_v1/src/App.jsx`)
- Admin inbox → Admin navigation: uses
- User management → Auth client: uses
- Auth client → Auth endpoints: HTTP requests (evidence: `Acapp_v1/src/services/authService.js`)
- Auth endpoints → Auth operations: delegates (evidence: `acapp-api/Controllers/AuthController.cs`)
- Auth operations → User data access: queries and saves (evidence: `acapp-api/Services/AuthService.cs`)
- User data access → User model: maps (evidence: `acapp-api/Data/AppDbContext.cs`)
- User data access → Configured database: persists users
- Alternate app routes → Alternate auth client: auth screens use
- Alternate auth client → Auth endpoints: HTTP requests (evidence: `acapp-api/src/services/authService.js`)
