# vinayux8055/student-project architecture

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

- Interactive diagram: https://gitdiagram.com/vinayux8055/student-project
- Repository: https://github.com/vinayux8055/student-project

## Overview

CollabConnect is a student project-collaboration web app. The main workflow is account creation or login, browsing projects by keyword or category, submitting a join request, and tracking projects and request status on the dashboard; owners can publish projects and users can maintain profiles. The graph includes the shared session/authentication and MySQL layers. The README provides no capability detail, and join-request, mailer, and schema behavior is only represented where the file index or sampled code supports it.

Main entry points: [`includes/db.php`](https://github.com/vinayux8055/student-project/blob/main/includes/db.php) (Database connection), [`projects.php`](https://github.com/vinayux8055/student-project/blob/main/projects.php) (Project search), [`includes/auth.php`](https://github.com/vinayux8055/student-project/blob/main/includes/auth.php) (Session authentication), [`index.php`](https://github.com/vinayux8055/student-project/blob/main/index.php) (Landing page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Project discovery"]
  node_landing["Landing page<br/>[index.php]"]
  node_catalog["Project search<br/>[projects.php]"]
end

subgraph group_accounts["Accounts and profiles"]
  node_registration["Registration<br/>[register.php]"]
  node_login["Login<br/>[login.php]"]
  node_profile["Profile management<br/>[profile.php]"]
  node_logout["Logout<br/>[logout.php]"]
end

subgraph group_collaboration["Team collaboration"]
  node_project_create["Project publishing<br/>[create_project.php]"]
  node_join["Join requests<br/>[join_project.php]"]
  node_dashboard["Project dashboard<br/>[dashboard.php]"]
end

subgraph group_shared["Shared services"]
  node_auth["Session authentication<br/>[auth.php]"]
  node_helpers["Request helpers<br/>[helpers.php]"]
  node_config["URL configuration<br/>[config.php]"]
  node_database_connection["Database connection<br/>[db.php]"]
  node_users_projects_store[("Users and projects<br/>[database.sql]")]
  node_mailer["Mail delivery<br/>[mailer.php]"]
  node_page_shell["Shared page shell<br/>[header.php]"]
  node_page_footer["Page footer<br/>[footer.php]"]
end

node_visitor(("Student"))

node_visitor -->|"opens"| node_landing
node_landing -->|"links to"| node_catalog
node_visitor -->|"registers"| node_registration
node_visitor -->|"signs in"| node_login
node_registration -->|"creates account"| node_database_connection
node_login -->|"checks credentials"| node_database_connection
node_visitor -->|"searches"| node_catalog
node_catalog -->|"queries projects"| node_database_connection
node_visitor -->|"publishes project"| node_project_create
node_project_create -->|"inserts project"| node_database_connection
node_catalog -->|"posts request"| node_join
node_join -->|"records request"| node_database_connection
node_join -->|"notifies owner"| node_mailer
node_visitor -->|"views activity"| node_dashboard
node_dashboard -->|"loads project activity"| node_database_connection
node_visitor -->|"edits profile"| node_profile
node_profile -->|"updates account"| node_database_connection
node_profile -.->|"stores photo"| node_users_projects_store
node_registration -.->|"stores account"| node_users_projects_store
node_database_connection -.->|"accesses"| node_users_projects_store
node_project_create -->|"requires login"| node_auth
node_join -->|"checks session"| node_auth
node_dashboard -->|"requires login"| node_auth
node_profile -->|"requires login"| node_auth
node_auth -->|"uses"| node_helpers
node_visitor -->|"signs out"| node_logout
node_landing -->|"renders with"| node_page_shell
node_catalog -->|"renders with"| node_page_shell
node_dashboard -->|"renders with"| node_page_shell
node_landing -->|"renders with"| node_page_footer

click node_landing "https://github.com/vinayux8055/student-project/blob/main/index.php"
click node_catalog "https://github.com/vinayux8055/student-project/blob/main/projects.php"
click node_registration "https://github.com/vinayux8055/student-project/blob/main/pages/register.php"
click node_login "https://github.com/vinayux8055/student-project/blob/main/pages/login.php"
click node_profile "https://github.com/vinayux8055/student-project/blob/main/pages/profile.php"
click node_logout "https://github.com/vinayux8055/student-project/blob/main/logout.php"
click node_project_create "https://github.com/vinayux8055/student-project/blob/main/create_project.php"
click node_join "https://github.com/vinayux8055/student-project/blob/main/join_project.php"
click node_dashboard "https://github.com/vinayux8055/student-project/blob/main/pages/dashboard.php"
click node_auth "https://github.com/vinayux8055/student-project/blob/main/includes/auth.php"
click node_helpers "https://github.com/vinayux8055/student-project/blob/main/includes/helpers.php"
click node_config "https://github.com/vinayux8055/student-project/blob/main/includes/config.php"
click node_database_connection "https://github.com/vinayux8055/student-project/blob/main/includes/db.php"
click node_users_projects_store "https://github.com/vinayux8055/student-project/blob/main/database.sql"
click node_mailer "https://github.com/vinayux8055/student-project/blob/main/includes/mailer.php"
click node_page_shell "https://github.com/vinayux8055/student-project/blob/main/includes/header.php"
click node_page_footer "https://github.com/vinayux8055/student-project/blob/main/includes/footer.php"

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_landing,node_catalog toneBlue
class node_registration,node_login,node_profile,node_logout toneAmber
class node_project_create,node_join,node_dashboard toneMint
class node_auth,node_helpers,node_config,node_database_connection,node_users_projects_store,node_mailer,node_page_shell,node_page_footer toneRose
class node_visitor toneIndigo
```

## Components

### Project discovery

- [Landing page](https://github.com/vinayux8055/student-project/blob/main/index.php): `index.php`
- [Project search](https://github.com/vinayux8055/student-project/blob/main/projects.php): `projects.php`

### Accounts and profiles

- [Registration](https://github.com/vinayux8055/student-project/blob/main/pages/register.php): `pages/register.php`
- [Login](https://github.com/vinayux8055/student-project/blob/main/pages/login.php): `pages/login.php`
- [Profile management](https://github.com/vinayux8055/student-project/blob/main/pages/profile.php): `pages/profile.php`
- [Logout](https://github.com/vinayux8055/student-project/blob/main/logout.php): `logout.php`

### Team collaboration

- [Project publishing](https://github.com/vinayux8055/student-project/blob/main/create_project.php): `create_project.php`
- [Join requests](https://github.com/vinayux8055/student-project/blob/main/join_project.php): `join_project.php`
- [Project dashboard](https://github.com/vinayux8055/student-project/blob/main/pages/dashboard.php): `pages/dashboard.php`

### Shared services

- [Session authentication](https://github.com/vinayux8055/student-project/blob/main/includes/auth.php): `includes/auth.php`
- [Request helpers](https://github.com/vinayux8055/student-project/blob/main/includes/helpers.php): `includes/helpers.php`
- [URL configuration](https://github.com/vinayux8055/student-project/blob/main/includes/config.php): `includes/config.php`
- [Database connection](https://github.com/vinayux8055/student-project/blob/main/includes/db.php): `includes/db.php`
- [Users and projects](https://github.com/vinayux8055/student-project/blob/main/database.sql): `database.sql`
- [Mail delivery](https://github.com/vinayux8055/student-project/blob/main/includes/mailer.php): `includes/mailer.php`
- [Shared page shell](https://github.com/vinayux8055/student-project/blob/main/includes/header.php): `includes/header.php`
- [Page footer](https://github.com/vinayux8055/student-project/blob/main/includes/footer.php): `includes/footer.php`

### Other components

- **Student**

## Connections

- Student → Landing page: opens (evidence: `index.php`)
- Landing page → Project search: links to (evidence: `index.php`)
- Student → Registration: registers (evidence: `pages/register.php`)
- Student → Login: signs in (evidence: `pages/login.php`)
- Registration → Database connection: creates account (evidence: `pages/register.php`)
- Login → Database connection: checks credentials (evidence: `pages/login.php`)
- Student → Project search: searches (evidence: `projects.php`)
- Project search → Database connection: queries projects (evidence: `projects.php`)
- Student → Project publishing: publishes project (evidence: `create_project.php`)
- Project publishing → Database connection: inserts project (evidence: `create_project.php`)
- Project search → Join requests: posts request (evidence: `projects.php`)
- Join requests → Database connection: records request (evidence: `join_project.php`)
- Join requests → Mail delivery: notifies owner (evidence: `join_project.php`)
- Student → Project dashboard: views activity (evidence: `pages/dashboard.php`)
- Project dashboard → Database connection: loads project activity (evidence: `pages/dashboard.php`)
- Student → Profile management: edits profile (evidence: `pages/profile.php`)
- Profile management → Database connection: updates account (evidence: `pages/profile.php`)
- Profile management → Users and projects: stores photo
- Registration → Users and projects: stores account
- Database connection → Users and projects: accesses
- Project publishing → Session authentication: requires login (evidence: `create_project.php`)
- Join requests → Session authentication: checks session (evidence: `join_project.php`)
- Project dashboard → Session authentication: requires login (evidence: `pages/dashboard.php`)
- Profile management → Session authentication: requires login (evidence: `pages/profile.php`)
- Session authentication → Request helpers: uses (evidence: `includes/auth.php`)
- Student → Logout: signs out
- Landing page → Shared page shell: renders with (evidence: `index.php`)
- Project search → Shared page shell: renders with (evidence: `projects.php`)
- Project dashboard → Shared page shell: renders with (evidence: `pages/dashboard.php`)
- Landing page → Page footer: renders with (evidence: `index.php`)
