# gnanesh99/campusgig architecture

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

- Interactive diagram: https://gitdiagram.com/gnanesh99/campusgig
- Repository: https://github.com/gnanesh99/campusgig

## Overview

CampusGig is a campus marketplace connecting student workers and employers. Employers post gigs; students apply; employers hire applicants, creating assignments that students work on and submit for employer review. Accepted work proceeds to Razorpay checkout, with payment confirmation completing the assignment. Accounts, gig listings, applications/assignments, and payment processing are the main product layers. The README documents separate student and employer dashboards; their views are included with application and assignment handling. Relationships are limited to those shown in excerpts or explicitly documented; some model and payment-service internals were not sampled.

Main entry points: [`gigs/views.py`](https://github.com/gnanesh99/campusgig/blob/main/gigs/views.py) (Gig Listings), [`applications/views.py`](https://github.com/gnanesh99/campusgig/blob/main/applications/views.py) (Application & Work Views), [`payments/views.py`](https://github.com/gnanesh99/campusgig/blob/main/payments/views.py) (Payment Views), [`accounts/models.py`](https://github.com/gnanesh99/campusgig/blob/main/accounts/models.py) (Accounts & Profiles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_marketplace["Marketplace"]
  node_accounts["Accounts &amp; Profiles<br/>[models.py]"]
  node_account_forms["Account Forms<br/>[forms.py]"]
  node_gigs["Gig Listings<br/>[views.py]"]
  node_gig_forms["Gig Forms<br/>[forms.py]"]
end

subgraph group_work["Applications &amp; Work"]
  node_applications["Applications<br/>[models.py]"]
  node_application_workflow["Application &amp; Work Views<br/>[views.py]"]
  node_assignments["Assignments<br/>[models.py]"]
end

subgraph group_payments["Payments"]
  node_payment_records["Payment Records<br/>[models.py]"]
  node_payment_views["Payment Views<br/>[views.py]"]
  node_payment_services["Payment Services<br/>[services.py]"]
end

subgraph group_platform["Application Platform"]
  node_routing["URL Routing<br/>[urls.py]"]
  node_settings["Django Settings<br/>[base.py]"]
end

node_student(("Student"))
node_employer(("Employer"))
node_razorpay["Razorpay"]
node_postgres[("PostgreSQL")]

node_student -->|"uses"| node_accounts
node_employer -->|"uses"| node_accounts
node_account_forms -->|"creates and edits"| node_accounts
node_student -->|"browses and applies"| node_gigs
node_employer -->|"posts and manages"| node_gigs
node_gigs -->|"uses"| node_gig_forms
node_gigs -->|"checks applications"| node_applications
node_student -->|"applies and submits"| node_application_workflow
node_employer -->|"reviews and hires"| node_application_workflow
node_application_workflow -->|"reads and updates"| node_applications
node_application_workflow -->|"loads gig"| node_gigs
node_application_workflow -->|"creates on hire"| node_assignments
node_assignments -->|"creates payment"| node_payment_records
node_employer -->|"starts checkout"| node_payment_views
node_payment_views -->|"reads and updates"| node_payment_records
node_payment_views -->|"creates order"| node_payment_services
node_payment_views -->|"verifies and receives events"| node_razorpay
node_razorpay -->|"sends webhook"| node_payment_views
node_payment_records -->|"completes on payment"| node_assignments
node_settings -->|"configures database"| node_postgres
node_settings -->|"sets user model"| node_accounts
node_routing -->|"routes home"| node_gigs

click node_accounts "https://github.com/gnanesh99/campusgig/blob/main/accounts/models.py"
click node_account_forms "https://github.com/gnanesh99/campusgig/blob/main/accounts/forms.py"
click node_gigs "https://github.com/gnanesh99/campusgig/blob/main/gigs/views.py"
click node_gig_forms "https://github.com/gnanesh99/campusgig/blob/main/gigs/forms.py"
click node_applications "https://github.com/gnanesh99/campusgig/blob/main/applications/models.py"
click node_application_workflow "https://github.com/gnanesh99/campusgig/blob/main/applications/views.py"
click node_assignments "https://github.com/gnanesh99/campusgig/blob/main/applications/models.py"
click node_payment_records "https://github.com/gnanesh99/campusgig/blob/main/payments/models.py"
click node_payment_views "https://github.com/gnanesh99/campusgig/blob/main/payments/views.py"
click node_payment_services "https://github.com/gnanesh99/campusgig/blob/main/payments/services.py"
click node_routing "https://github.com/gnanesh99/campusgig/blob/main/campusgig/urls.py"
click node_settings "https://github.com/gnanesh99/campusgig/blob/main/campusgig/settings/base.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_accounts,node_account_forms,node_gigs,node_gig_forms toneBlue
class node_applications,node_application_workflow,node_assignments,node_postgres toneAmber
class node_payment_records,node_payment_views,node_payment_services toneMint
class node_routing,node_settings toneRose
class node_student,node_employer,node_razorpay toneIndigo
```

## Components

### Marketplace

- [Accounts & Profiles](https://github.com/gnanesh99/campusgig/blob/main/accounts/models.py): `accounts/models.py`
- [Account Forms](https://github.com/gnanesh99/campusgig/blob/main/accounts/forms.py): `accounts/forms.py`
- [Gig Listings](https://github.com/gnanesh99/campusgig/blob/main/gigs/views.py): `gigs/views.py`
- [Gig Forms](https://github.com/gnanesh99/campusgig/blob/main/gigs/forms.py): `gigs/forms.py`

### Applications & Work

- [Applications](https://github.com/gnanesh99/campusgig/blob/main/applications/models.py): `applications/models.py`
- [Application & Work Views](https://github.com/gnanesh99/campusgig/blob/main/applications/views.py): `applications/views.py`
- [Assignments](https://github.com/gnanesh99/campusgig/blob/main/applications/models.py): `applications/models.py`

### Payments

- [Payment Records](https://github.com/gnanesh99/campusgig/blob/main/payments/models.py): `payments/models.py`
- [Payment Views](https://github.com/gnanesh99/campusgig/blob/main/payments/views.py): `payments/views.py`
- [Payment Services](https://github.com/gnanesh99/campusgig/blob/main/payments/services.py): `payments/services.py`

### Application Platform

- [URL Routing](https://github.com/gnanesh99/campusgig/blob/main/campusgig/urls.py): `campusgig/urls.py`
- [Django Settings](https://github.com/gnanesh99/campusgig/blob/main/campusgig/settings/base.py): `campusgig/settings/base.py`

### Other components

- **Student**
- **Employer**
- **Razorpay**
- **PostgreSQL**

## Connections

- Student → Accounts & Profiles: uses (evidence: `README.md`)
- Employer → Accounts & Profiles: uses (evidence: `README.md`)
- Account Forms → Accounts & Profiles: creates and edits (evidence: `accounts/forms.py`)
- Student → Gig Listings: browses and applies (evidence: `README.md`)
- Employer → Gig Listings: posts and manages (evidence: `README.md`)
- Gig Listings → Gig Forms: uses (evidence: `gigs/views.py`)
- Gig Listings → Applications: checks applications (evidence: `gigs/views.py`)
- Student → Application & Work Views: applies and submits (evidence: `README.md`)
- Employer → Application & Work Views: reviews and hires (evidence: `README.md`)
- Application & Work Views → Applications: reads and updates (evidence: `applications/views.py`)
- Application & Work Views → Gig Listings: loads gig (evidence: `applications/views.py`)
- Application & Work Views → Assignments: creates on hire (evidence: `applications/views.py`)
- Assignments → Payment Records: creates payment (evidence: `applications/tests.py`)
- Employer → Payment Views: starts checkout (evidence: `README.md`)
- Payment Views → Payment Records: reads and updates (evidence: `payments/views.py`)
- Payment Views → Payment Services: creates order (evidence: `payments/views.py`)
- Payment Views → Razorpay: verifies and receives events (evidence: `payments/views.py`)
- Razorpay → Payment Views: sends webhook (evidence: `README.md`)
- Payment Records → Assignments: completes on payment (evidence: `payments/tests.py`)
- Django Settings → PostgreSQL: configures database (evidence: `campusgig/settings/base.py`)
- Django Settings → Accounts & Profiles: sets user model (evidence: `campusgig/settings/base.py`)
- URL Routing → Gig Listings: routes home (evidence: `campusgig/urls.py`)
