# nourane-hammouda/influmatch architecture

> Architecture diagram of the GitHub repository nourane-hammouda/influmatch, 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/nourane-hammouda/influmatch
- Repository: https://github.com/nourane-hammouda/influmatch
- Video tour (about a minute): https://gitdiagram.com/nourane-hammouda/influmatch/video

## Overview

InfluMatch connects influencers and companies through collaboration campaigns. The influencer workflow runs from signup/login and profile completion to discovering offers, viewing details, applying, and tracking applications and notifications; company profile, campaign publishing, application review, and collaboration management are documented capabilities. The graph separates React journeys, API handling, and domain records. Several UI capabilities are documented but their backend handlers are not shown in the supplied excerpts, so those links are documented rather than inferred from unsampled code.

Main entry points: [`frontend/src/App.tsx`](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/App.tsx) (App routing), [`frontend/src/services/api.ts`](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/services/api.ts) (API client), [`frontend/src/services/mockData.ts`](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/services/mockData.ts) (Mock data), [`api/urls.py`](https://github.com/nourane-hammouda/influmatch/blob/main/api/urls.py) (API routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web experience"]
  node_app_router["App routing<br/>[App.tsx]"]
  node_signup_page["Sign up<br/>[SignupPage.tsx]"]
  node_login_page["Login<br/>[LoginPage.tsx]"]
  node_profile_completion["Profile completion"]
  node_profile_page["Profiles<br/>[ProfilePage.tsx]"]
  node_dashboard_page["Dashboard<br/>[DashboardPage.tsx]"]
  node_marketplace_page["Marketplace"]
  node_offer_detail["Offer details"]
  node_applications_page["Applications"]
  node_notifications_page["Notifications"]
  node_api_client["API client<br/>[api.ts]"]
  node_mock_data["Mock data<br/>[mockData.ts]"]
  node_auth_context["Auth context<br/>[AuthContext.tsx]"]
end

subgraph group_backend["API and identity"]
  node_api_routes["API routes<br/>[urls.py]"]
  node_auth_views["Authentication<br/>[auth_views.py]"]
  node_profile_views["Profile updates<br/>[profile_views.py]"]
  node_user_views["User API<br/>[user_views.py]"]
end

subgraph group_domain["Marketplace domain"]
  node_user_model["User account<br/>[user.py]"]
  node_influencer_model["Influencer profile<br/>[influencer.py]"]
  node_company_model["Company campaigns<br/>[company.py]"]
  node_application_model["Applications and alerts<br/>[application.py]"]
end

subgraph group_persistence["Data storage"]
  node_db[("Relational database")]
end

node_influencer_actor(("Influencer"))
node_company_actor(("Company"))

node_influencer_actor -->|"uses"| node_app_router
node_company_actor -->|"uses"| node_app_router
node_app_router -->|"routes to"| node_signup_page
node_app_router -->|"routes to"| node_login_page
node_app_router -->|"routes to"| node_profile_completion
node_app_router -->|"routes to"| node_profile_page
node_app_router -->|"routes to"| node_dashboard_page
node_app_router -->|"routes to"| node_marketplace_page
node_app_router -->|"routes to"| node_offer_detail
node_app_router -->|"routes to"| node_applications_page
node_app_router -->|"routes to"| node_notifications_page
node_app_router -->|"checks auth"| node_api_client
node_signup_page -->|"registers through"| node_api_client
node_login_page -->|"authenticates through"| node_api_client
node_profile_completion -->|"updates through"| node_api_client
node_profile_page -->|"requests through"| node_api_client
node_auth_context -->|"uses"| node_api_client
node_applications_page -->|"reads"| node_mock_data
node_dashboard_page -->|"reads"| node_mock_data
node_marketplace_page -->|"reads"| node_mock_data
node_notifications_page -->|"reads"| node_mock_data
node_offer_detail -->|"reads"| node_mock_data
node_api_client -->|"sends requests"| node_api_routes
node_api_routes -->|"routes to"| node_auth_views
node_api_routes -->|"routes to"| node_profile_views
node_api_routes -->|"routes to"| node_user_views
node_auth_views -->|"creates accounts"| node_user_model
node_profile_views -->|"updates"| node_influencer_model
node_influencer_actor -->|"discovers offers"| node_marketplace_page
node_influencer_actor -->|"tracks applications"| node_applications_page
node_influencer_actor -->|"receives updates"| node_notifications_page
node_company_actor -->|"publishes campaigns"| node_company_model
node_company_actor -->|"reviews applications"| node_application_model
node_influencer_model -->|"references account"| node_user_model
node_company_model -->|"references account"| node_user_model
node_application_model -->|"references campaign"| node_company_model
node_application_model -->|"references influencer"| node_influencer_model
node_user_model -->|"persists"| node_db
node_influencer_model -->|"persists"| node_db
node_company_model -->|"persists"| node_db
node_application_model -->|"persists"| node_db

click node_app_router "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/App.tsx"
click node_signup_page "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/SignupPage.tsx"
click node_login_page "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/LoginPage.tsx"
click node_profile_completion "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/ProfileCompletionPage.tsx"
click node_profile_page "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/ProfilePage.tsx"
click node_dashboard_page "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/DashboardPage.tsx"
click node_marketplace_page "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/MarketplacePage.tsx"
click node_offer_detail "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/OfferDetailPage.tsx"
click node_applications_page "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/ApplicationsPage.tsx"
click node_notifications_page "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/NotificationsPage.tsx"
click node_api_client "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/services/api.ts"
click node_mock_data "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/services/mockData.ts"
click node_auth_context "https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/contexts/AuthContext.tsx"
click node_api_routes "https://github.com/nourane-hammouda/influmatch/blob/main/api/urls.py"
click node_auth_views "https://github.com/nourane-hammouda/influmatch/blob/main/api/views/auth_views.py"
click node_profile_views "https://github.com/nourane-hammouda/influmatch/blob/main/api/views/profile_views.py"
click node_user_views "https://github.com/nourane-hammouda/influmatch/blob/main/api/views/user_views.py"
click node_user_model "https://github.com/nourane-hammouda/influmatch/blob/main/api/models/user.py"
click node_influencer_model "https://github.com/nourane-hammouda/influmatch/blob/main/api/models/influencer.py"
click node_company_model "https://github.com/nourane-hammouda/influmatch/blob/main/api/models/company.py"
click node_application_model "https://github.com/nourane-hammouda/influmatch/blob/main/api/models/application.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_app_router,node_signup_page,node_login_page,node_profile_completion,node_profile_page,node_dashboard_page,node_marketplace_page,node_offer_detail,node_applications_page,node_notifications_page,node_api_client,node_mock_data,node_auth_context toneBlue
class node_api_routes,node_auth_views,node_profile_views,node_user_views toneAmber
class node_user_model,node_influencer_model,node_company_model,node_application_model toneMint
class node_db toneRose
class node_influencer_actor,node_company_actor toneIndigo
```

## Components

### Web experience

- [App routing](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Sign up](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/SignupPage.tsx): `frontend/src/pages/SignupPage.tsx`
- [Login](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/LoginPage.tsx): `frontend/src/pages/LoginPage.tsx`
- [Profile completion](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/ProfileCompletionPage.tsx): `frontend/src/pages/ProfileCompletionPage.tsx`
- [Profiles](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/ProfilePage.tsx): `frontend/src/pages/ProfilePage.tsx`
- [Dashboard](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/DashboardPage.tsx): `frontend/src/pages/DashboardPage.tsx`
- [Marketplace](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/MarketplacePage.tsx): `frontend/src/pages/MarketplacePage.tsx`
- [Offer details](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/OfferDetailPage.tsx): `frontend/src/pages/OfferDetailPage.tsx`
- [Applications](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/ApplicationsPage.tsx): `frontend/src/pages/ApplicationsPage.tsx`
- [Notifications](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/pages/NotificationsPage.tsx): `frontend/src/pages/NotificationsPage.tsx`
- [API client](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`
- [Mock data](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/services/mockData.ts): `frontend/src/services/mockData.ts`
- [Auth context](https://github.com/nourane-hammouda/influmatch/blob/main/frontend/src/contexts/AuthContext.tsx): `frontend/src/contexts/AuthContext.tsx`

### API and identity

- [API routes](https://github.com/nourane-hammouda/influmatch/blob/main/api/urls.py): `api/urls.py`
- [Authentication](https://github.com/nourane-hammouda/influmatch/blob/main/api/views/auth_views.py): `api/views/auth_views.py`
- [Profile updates](https://github.com/nourane-hammouda/influmatch/blob/main/api/views/profile_views.py): `api/views/profile_views.py`
- [User API](https://github.com/nourane-hammouda/influmatch/blob/main/api/views/user_views.py): `api/views/user_views.py`

### Marketplace domain

- [User account](https://github.com/nourane-hammouda/influmatch/blob/main/api/models/user.py): `api/models/user.py`
- [Influencer profile](https://github.com/nourane-hammouda/influmatch/blob/main/api/models/influencer.py): `api/models/influencer.py`
- [Company campaigns](https://github.com/nourane-hammouda/influmatch/blob/main/api/models/company.py): `api/models/company.py`
- [Applications and alerts](https://github.com/nourane-hammouda/influmatch/blob/main/api/models/application.py): `api/models/application.py`

### Data storage

- **Relational database**

### Other components

- **Influencer**
- **Company**

## Connections

- Influencer → App routing: uses (evidence: `README.md`)
- Company → App routing: uses (evidence: `README.md`)
- App routing → Sign up: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Login: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Profile completion: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Profiles: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Dashboard: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Marketplace: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Offer details: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Applications: routes to (evidence: `frontend/src/App.tsx`)
- App routing → Notifications: routes to (evidence: `frontend/src/App.tsx`)
- App routing → API client: checks auth (evidence: `frontend/src/App.tsx`)
- Sign up → API client: registers through (evidence: `frontend/src/services/api.ts`)
- Login → API client: authenticates through (evidence: `frontend/src/services/api.ts`)
- Profile completion → API client: updates through (evidence: `frontend/src/services/api.ts`)
- Profiles → API client: requests through (evidence: `frontend/src/pages/ProfilePage.tsx`)
- Auth context → API client: uses (evidence: `frontend/src/contexts/AuthContext.tsx`)
- Applications → Mock data: reads (evidence: `frontend/src/pages/ApplicationsPage.tsx`)
- Dashboard → Mock data: reads (evidence: `frontend/src/pages/DashboardPage.tsx`)
- Marketplace → Mock data: reads (evidence: `frontend/src/pages/MarketplacePage.tsx`)
- Notifications → Mock data: reads (evidence: `frontend/src/pages/NotificationsPage.tsx`)
- Offer details → Mock data: reads (evidence: `frontend/src/pages/OfferDetailPage.tsx`)
- API client → API routes: sends requests (evidence: `frontend/src/services/api.ts`)
- API routes → Authentication: routes to (evidence: `api/urls.py`)
- API routes → Profile updates: routes to (evidence: `api/urls.py`)
- API routes → User API: routes to (evidence: `api/urls.py`)
- Authentication → User account: creates accounts (evidence: `api/views/auth_views.py`)
- Profile updates → Influencer profile: updates (evidence: `api/views/profile_views.py`)
- Influencer → Marketplace: discovers offers (evidence: `README.md`)
- Influencer → Applications: tracks applications (evidence: `README.md`)
- Influencer → Notifications: receives updates (evidence: `README.md`)
- Company → Company campaigns: publishes campaigns (evidence: `README.md`)
- Company → Applications and alerts: reviews applications (evidence: `README.md`)
- Influencer profile → User account: references account (evidence: `api/models/influencer.py`)
- Company campaigns → User account: references account (evidence: `api/models/company.py`)
- Applications and alerts → Company campaigns: references campaign (evidence: `api/models/application.py`)
- Applications and alerts → Influencer profile: references influencer (evidence: `api/models/application.py`)
- User account → Relational database: persists (evidence: `README.md`)
- Influencer profile → Relational database: persists (evidence: `README.md`)
- Company campaigns → Relational database: persists (evidence: `README.md`)
- Applications and alerts → Relational database: persists (evidence: `README.md`)
