# gopikrishnagajam/studybuddy architecture

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

- Interactive diagram: https://gitdiagram.com/gopikrishnagajam/studybuddy
- Repository: https://github.com/gopikrishnagajam/studybuddy

## Overview

StudyBuddy is a Django collaborative-learning platform. Students register or sign in, set up an academic profile, discover and manage study groups, request membership, and participate in group discussions; hosts can review requests and edit group details. The graph separates account, profile, group-management, and persistence responsibilities. The README documents password reset and dashboard capabilities, but the corresponding unsampled implementations are not expanded beyond their supported paths. Several edges reflect README-level behavior; source excerpts provide the detailed view-to-model and form-to-view evidence.

Main entry points: [`StudyBuddy/userAuth/views.py`](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/views.py) (Account flows), [`StudyBuddy/userDashboard/views.py`](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userDashboard/views.py) (Group dashboard), [`StudyBuddy/userDashboard/models.py`](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userDashboard/models.py) (Groups and membership), [`StudyBuddy/userProfile/models.py`](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userProfile/models.py) (Profiles and subjects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts"]
  node_auth_views["Account flows<br/>[views.py]"]
  node_registration_form["Registration form<br/>[forms.py]"]
  node_user_model[("User accounts<br/>[models.py]")]
  node_password_reset["Password reset<br/>[urls.py]"]
end

subgraph group_profiles["Profiles"]
  node_profile_views["Profile setup<br/>[views.py]"]
  node_profile_data[("Profiles and subjects<br/>[models.py]")]
end

subgraph group_groups["Study groups"]
  node_group_views["Group dashboard<br/>[views.py]"]
  node_group_models[("Groups and membership<br/>[models.py]")]
end

subgraph group_platform["Platform"]
  node_landing["Landing page<br/>[views.py]"]
  node_sqlite[("SQLite database<br/>[db.sqlite3]")]
end

node_student(("Student"))

node_student -->|"visits"| node_landing
node_student -->|"registers or signs in"| node_auth_views
node_auth_views -->|"validates registration"| node_registration_form
node_auth_views -->|"creates account"| node_user_model
node_student -->|"requests reset"| node_password_reset
node_auth_views -->|"redirects after signup"| node_profile_views
node_student -->|"sets interests"| node_profile_views
node_profile_views -->|"reads and updates"| node_profile_data
node_student -->|"browses groups"| node_group_views
node_group_views -->|"queries and changes"| node_group_models
node_group_views -->|"loads subjects"| node_profile_data
node_group_views -->|"posts discussion messages"| node_group_models
node_group_models -->|"references subjects"| node_profile_data
node_user_model -->|"persists accounts"| node_sqlite
node_profile_data -->|"persists profiles"| node_sqlite
node_group_models -->|"persists group data"| node_sqlite

click node_landing "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/projLanding/views.py"
click node_auth_views "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/views.py"
click node_registration_form "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/forms.py"
click node_user_model "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/models.py"
click node_password_reset "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/urls.py"
click node_profile_views "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userProfile/views.py"
click node_profile_data "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userProfile/models.py"
click node_group_views "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userDashboard/views.py"
click node_group_models "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userDashboard/models.py"
click node_sqlite "https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/db.sqlite3"

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_auth_views,node_registration_form,node_user_model,node_password_reset toneBlue
class node_profile_views,node_profile_data toneAmber
class node_group_views,node_group_models toneMint
class node_landing,node_sqlite toneRose
class node_student toneIndigo
```

## Components

### Accounts

- [Account flows](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/views.py): `StudyBuddy/userAuth/views.py`
- [Registration form](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/forms.py): `StudyBuddy/userAuth/forms.py`
- [User accounts](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/models.py): `StudyBuddy/userAuth/models.py`
- [Password reset](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userAuth/urls.py): `StudyBuddy/userAuth/urls.py`

### Profiles

- [Profile setup](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userProfile/views.py): `StudyBuddy/userProfile/views.py`
- [Profiles and subjects](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userProfile/models.py): `StudyBuddy/userProfile/models.py`

### Study groups

- [Group dashboard](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userDashboard/views.py): `StudyBuddy/userDashboard/views.py`
- [Groups and membership](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/userDashboard/models.py): `StudyBuddy/userDashboard/models.py`

### Platform

- [Landing page](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/projLanding/views.py): `StudyBuddy/projLanding/views.py`
- [SQLite database](https://github.com/gopikrishnagajam/studybuddy/blob/main/StudyBuddy/db.sqlite3): `StudyBuddy/db.sqlite3`

### Other components

- **Student**

## Connections

- Student → Landing page: visits (evidence: `README.md`)
- Student → Account flows: registers or signs in (evidence: `README.md`)
- Account flows → Registration form: validates registration (evidence: `StudyBuddy/userAuth/views.py`)
- Account flows → User accounts: creates account (evidence: `StudyBuddy/userAuth/views.py`)
- Student → Password reset: requests reset (evidence: `README.md`)
- Account flows → Profile setup: redirects after signup (evidence: `StudyBuddy/userAuth/views.py`)
- Student → Profile setup: sets interests (evidence: `README.md`)
- Profile setup → Profiles and subjects: reads and updates (evidence: `StudyBuddy/userProfile/views.py`)
- Student → Group dashboard: browses groups (evidence: `README.md`)
- Group dashboard → Groups and membership: queries and changes (evidence: `StudyBuddy/userDashboard/views.py`)
- Group dashboard → Profiles and subjects: loads subjects (evidence: `StudyBuddy/userDashboard/views.py`)
- Group dashboard → Groups and membership: posts discussion messages (evidence: `README.md`)
- Groups and membership → Profiles and subjects: references subjects (evidence: `StudyBuddy/userDashboard/models.py`)
- User accounts → SQLite database: persists accounts (evidence: `README.md`)
- Profiles and subjects → SQLite database: persists profiles (evidence: `README.md`)
- Groups and membership → SQLite database: persists group data (evidence: `README.md`)
