# daanyaal5/pride-stem-networking-2691-project-minimum_viable_product- architecture

> Architecture diagram of the GitHub repository daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-
- Repository: https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-

## Overview

Pride STEM Networking is a community web app for STEM networking, with accounts and profiles, a post feed, event creation and details, search, and direct messaging. Users enter through the React router, authenticate, then use protected pages; the backend serves account, profile, post, event, and search routes backed by MySQL. The shown search implementations use mock data, and messaging has frontend components but no corresponding backend route shown. Edges reflect excerpts and source-index references; unsampled behavior is not assumed.

Main entry points: [`frontend/src/App.js`](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/App.js) (App routing), [`backend/server.js`](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/server.js) (HTTP server), [`backend/database/database.js`](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/database/database.js) (MySQL data access), [`backend/routes/profileRoutes.js`](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/profileRoutes.js) (Profile API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web application"]
  node_app["App routing<br/>[App.js]"]
end

subgraph group_identity["Accounts and profiles"]
  node_login["Sign in<br/>[Login.js]"]
  node_register["Registration<br/>[Register.js]"]
  node_profileui["Profile experience<br/>[Profile.js]"]
  node_profileform["Profile editing"]
  node_profilepage["Profile display<br/>[ProfilePage.js]"]
end

subgraph group_community["Community features"]
  node_home["Home feed<br/>[Home.js]"]
  node_postcard["Post cards<br/>[PostCard.jsx]"]
  node_eventform["Event creation"]
  node_eventdetails["Event details<br/>[EventDetails.js]"]
  node_searchui["Search page<br/>[SearchPage.jsx]"]
  node_messaging["Direct messaging"]
  node_chatwindow["Chat window<br/>[ChatWindow.jsx]"]
end

subgraph group_backend["API and persistence"]
  node_server["HTTP server<br/>[server.js]"]
  node_authroutes["Authentication API<br/>[AuthRoutes.js]"]
  node_profileroutes["Profile API<br/>[profileRoutes.js]"]
  node_postroutes["Posts API<br/>[postRoutes.js]"]
  node_eventroutes["Events API<br/>[eventsRoutes.js]"]
  node_searchroutes["Search API<br/>[SearchRoutes.js]"]
  node_profileservice["Profile data access<br/>[profile.js]"]
  node_database[("MySQL data access<br/>[database.js]")]
end

node_member(("Community member"))

node_member -.->|"uses"| node_app
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_profileui
node_app -->|"routes to"| node_profileform
node_app -->|"routes to"| node_eventform
node_app -->|"routes to"| node_eventdetails
node_app -->|"routes to"| node_searchui
node_app -->|"routes to"| node_messaging
node_home -->|"renders"| node_postcard
node_profileui -->|"uses"| node_profilepage
node_messaging -->|"renders"| node_chatwindow
node_eventform -->|"submits to"| node_eventroutes
node_server -->|"mounts"| node_authroutes
node_server -->|"mounts"| node_profileroutes
node_server -->|"mounts"| node_postroutes
node_server -->|"mounts"| node_eventroutes
node_server -->|"mounts"| node_searchroutes
node_authroutes -->|"queries"| node_database
node_postroutes -->|"calls"| node_database
node_eventroutes -->|"queries"| node_database
node_profileroutes -->|"calls"| node_profileservice
node_profileroutes -->|"queries"| node_database
node_profileservice -->|"queries"| node_database

click node_app "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/App.js"
click node_login "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/Auth/Login.js"
click node_register "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/Auth/Register.js"
click node_profileui "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/Profile.js"
click node_profileform "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/UserProfileForm.jsx"
click node_profilepage "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/ProfilePage.js"
click node_home "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/Home.js"
click node_postcard "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/PostCard.jsx"
click node_eventform "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/CreateEventForm.jsx"
click node_eventdetails "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/EventDetails.js"
click node_searchui "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/SearchPage.jsx"
click node_messaging "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/DirectMessaging.jsx"
click node_chatwindow "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/ChatWindow.jsx"
click node_server "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/server.js"
click node_authroutes "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/AuthRoutes.js"
click node_profileroutes "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/profileRoutes.js"
click node_postroutes "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/postRoutes.js"
click node_eventroutes "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/eventsRoutes.js"
click node_searchroutes "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/SearchRoutes.js"
click node_profileservice "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/database/profile.js"
click node_database "https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/database/database.js"

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_app toneBlue
class node_login,node_register,node_profileui,node_profileform,node_profilepage toneAmber
class node_home,node_postcard,node_eventform,node_eventdetails,node_searchui,node_messaging,node_chatwindow toneMint
class node_server,node_authroutes,node_profileroutes,node_postroutes,node_eventroutes,node_searchroutes,node_profileservice,node_database toneRose
class node_member toneIndigo
```

## Components

### Web application

- [App routing](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/App.js): `frontend/src/App.js`

### Accounts and profiles

- [Sign in](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/Auth/Login.js): `frontend/src/pages/Auth/Login.js`
- [Registration](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/Auth/Register.js): `frontend/src/pages/Auth/Register.js`
- [Profile experience](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/Profile.js): `frontend/src/pages/Profile.js`
- [Profile editing](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/UserProfileForm.jsx): `frontend/src/components/UserProfileForm.jsx`
- [Profile display](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/ProfilePage.js): `frontend/src/components/ProfilePage.js`

### Community features

- [Home feed](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/Home.js): `frontend/src/pages/Home.js`
- [Post cards](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/PostCard.jsx): `frontend/src/components/PostCard.jsx`
- [Event creation](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/CreateEventForm.jsx): `frontend/src/components/CreateEventForm.jsx`
- [Event details](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/EventDetails.js): `frontend/src/pages/EventDetails.js`
- [Search page](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/SearchPage.jsx): `frontend/src/pages/SearchPage.jsx`
- [Direct messaging](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/pages/DirectMessaging.jsx): `frontend/src/pages/DirectMessaging.jsx`
- [Chat window](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/frontend/src/components/ChatWindow.jsx): `frontend/src/components/ChatWindow.jsx`

### API and persistence

- [HTTP server](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/server.js): `backend/server.js`
- [Authentication API](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/AuthRoutes.js): `backend/routes/AuthRoutes.js`
- [Profile API](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/profileRoutes.js): `backend/routes/profileRoutes.js`
- [Posts API](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/postRoutes.js): `backend/routes/postRoutes.js`
- [Events API](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/eventsRoutes.js): `backend/routes/eventsRoutes.js`
- [Search API](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/routes/SearchRoutes.js): `backend/routes/SearchRoutes.js`
- [Profile data access](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/database/profile.js): `backend/database/profile.js`
- [MySQL data access](https://github.com/daanyaal5/pride-stem-networking-2691-project-minimum_viable_product-/blob/main/backend/database/database.js): `backend/database/database.js`

### Other components

- **Community member**

## Connections

- Community member → App routing: uses
- App routing → Sign in: routes to (evidence: `frontend/src/App.js`)
- App routing → Registration: routes to (evidence: `frontend/src/App.js`)
- App routing → Home feed: routes to (evidence: `frontend/src/App.js`)
- App routing → Profile experience: routes to (evidence: `frontend/src/App.js`)
- App routing → Profile editing: routes to (evidence: `frontend/src/App.js`)
- App routing → Event creation: routes to (evidence: `frontend/src/App.js`)
- App routing → Event details: routes to (evidence: `frontend/src/App.js`)
- App routing → Search page: routes to (evidence: `frontend/src/App.js`)
- App routing → Direct messaging: routes to (evidence: `frontend/src/App.js`)
- Home feed → Post cards: renders (evidence: `frontend/src/pages/Home.js`)
- Profile experience → Profile display: uses (evidence: `frontend/src/components/ProfilePage.js`)
- Direct messaging → Chat window: renders (evidence: `frontend/src/pages/DirectMessaging.jsx`)
- Event creation → Events API: submits to (evidence: `frontend/src/components/CreateEventForm.jsx`)
- HTTP server → Authentication API: mounts (evidence: `backend/server.js`)
- HTTP server → Profile API: mounts (evidence: `backend/server.js`)
- HTTP server → Posts API: mounts (evidence: `backend/server.js`)
- HTTP server → Events API: mounts (evidence: `backend/server.js`)
- HTTP server → Search API: mounts (evidence: `backend/server.js`)
- Authentication API → MySQL data access: queries (evidence: `backend/routes/AuthRoutes.js`)
- Posts API → MySQL data access: calls (evidence: `backend/routes/postRoutes.js`)
- Events API → MySQL data access: queries (evidence: `backend/routes/eventsRoutes.js`)
- Profile API → Profile data access: calls (evidence: `backend/routes/profileRoutes.js`)
- Profile API → MySQL data access: queries (evidence: `backend/routes/profileRoutes.js`)
- Profile data access → MySQL data access: queries (evidence: `backend/database/profile.js`)
