# pavanbhargav/vbond-creatives-hub architecture

> Architecture diagram of the GitHub repository pavanbhargav/vbond-creatives-hub, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pavanbhargav/vbond-creatives-hub
- Repository: https://github.com/pavanbhargav/vbond-creatives-hub

## Overview

#### Purpose and entry points
This is a split client/server application centered on account authentication. The frontend is a Next.js app; the backend is a Django service exposing account endpoints. Primary entry points are `client/creative-hub/app/page.tsx`, `client/creative-hub/app/layout.tsx`, and `server/manage.py`.

#### Frontend application shell
Next.js App Router owns browser rendering, route composition, and global styling. The root layout establishes shared page structure and styles; the home route is separate from authentication routes.
- `client/creative-hub/app/layout.tsx`
- `client/creative-hub/app/globals.css`
- `client/creative-hub/app/page.tsx`

#### Authentication user journeys
Login and signup are dedicated frontend routes, likely collecting credentials and invoking backend authentication APIs. These routes form the principal user-facing workflow currently represented in the repository.
- `client/creative-hub/app/login/page.tsx`
- `client/creative-hub/app/signup/page.tsx`
- `client/creative-hub/api/axios.ts`

#### API boundary
The Axios module is the frontend’s HTTP integration boundary and should centralize backend base URL, headers, credentials/token handling, and common failure behavior. Browser components should call this client rather than directly coupling to Django endpoint details.
- `client/creative-hub/api/axios.ts`
- `server/config/urls.py`
- `server/apps/accounts/urls.py`

#### Account domain and authentication
The Django `accounts` app owns account persistence, authentication behavior, request/response serialization, and HTTP views. The expected control flow is: frontend form → Axios request → project URL routing → accounts URL routing → view → serializer/authentication logic → account model/database.
- `server/apps/accounts/models.py`
- `server/apps/accounts/authenticate.py`
- `server/apps/accounts/serializers.py`
- `server/apps/accounts/views.py`

#### Backend composition and deployment interfaces
Django project settings compose installed apps, middleware, database/auth configuration, and service-wide behavior. `asgi.py` and `wsgi.py` expose alternate server interfaces; the build script is the deployment-oriented backend entrypoint.
- `server/config/settings.py`
- `server/config/asgi.py`
- `server/config/wsgi.py`
- `server/build.sh`

#### Persistence and external/runtime dependencies
Django migrations define the account schema evolution and imply a configured relational database, though its concrete provider is not visible here. Material runtimes are Node.js/Next.js/TypeScript in `client/creative-hub/package.json` and Python/Django dependencies in `server/requirements.txt`. No third-party external service integration is evident beyond frontend-to-backend HTTP.
- `server/apps/accounts/migrations/0001_initial.py`
- `client/creative-hub/package.json`
- `server/requirements.txt`

Main entry points: [`client/creative-hub/app/layout.tsx`](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/layout.tsx) (App shell), [`server/config/settings.py`](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/config/settings.py) (Project settings), [`server/apps/accounts/models.py`](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/models.py) (Account model), [`server/apps/accounts/views.py`](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/views.py) (Account views)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Next.js frontend"]
  node_next_shell["App shell<br/>Next.js App Router<br/>[layout.tsx]"]
  node_home_route["Home route<br/>Next.js page<br/>[page.tsx]"]
  node_login_route["Login route<br/>Next.js page<br/>[page.tsx]"]
  node_signup_route["Signup route<br/>Next.js page<br/>[page.tsx]"]
  node_http_client{{"Axios API client<br/>HTTP boundary<br/>[axios.ts]"}}
  node_frontend_runtime["Node / Next runtime<br/>runtime dependencies<br/>[package.json]"]
end

subgraph group_backend["Django backend"]
  node_manage["Django management entry<br/>Python entry point<br/>[manage.py]"]
  node_settings["Project settings<br/>Django configuration<br/>[settings.py]"]
  node_project_urls["Project URL router<br/>Django routing<br/>[urls.py]"]
  node_account_urls["Account URL router<br/>Django routing<br/>[urls.py]"]
  node_account_views["Account views<br/>Django HTTP views<br/>[views.py]"]
  node_serializers["Account serializers<br/>serialization layer<br/>[serializers.py]"]
  node_authentication["Authentication logic<br/>auth service<br/>[authenticate.py]"]
  node_account_model["Account model<br/>Django model<br/>[models.py]"]
  node_migration["Account schema migration<br/>Django migration<br/>[0001_initial.py]"]
  node_database[("Relational database<br/>persistence")]
  node_server_interfaces{{"ASGI / WSGI interfaces<br/>server interfaces<br/>[asgi.py]"}}
  node_build_script["Backend build script<br/>deployment entry point<br/>[build.sh]"]
  node_backend_dependencies["Python / Django dependencies<br/>runtime dependencies<br/>[requirements.txt]"]
end

node_next_shell -->|"renders route"| node_home_route
node_next_shell -->|"composes"| node_login_route
node_next_shell -->|"composes"| node_signup_route
node_login_route -->|"submits credentials"| node_http_client
node_signup_route -->|"submits registration"| node_http_client
node_http_client -->|"HTTP account requests"| node_project_urls
node_manage -->|"loads"| node_settings
node_settings -->|"configures"| node_project_urls
node_project_urls -->|"delegates account paths"| node_account_urls
node_account_urls -->|"routes requests"| node_account_views
node_account_views -->|"validates payloads"| node_serializers
node_account_views -->|"authenticates"| node_authentication
node_serializers -->|"maps account data"| node_account_model
node_authentication -->|"verifies accounts"| node_account_model
node_account_model -->|"persists"| node_database
node_migration -->|"evolves schema"| node_database
node_settings -.->|"installs app"| node_account_model
node_server_interfaces -->|"boots project"| node_settings
node_build_script -.->|"deploys service"| node_server_interfaces
node_frontend_runtime -.->|"runs"| node_next_shell
node_backend_dependencies -.->|"provides Django runtime"| node_manage

click node_next_shell "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/layout.tsx"
click node_home_route "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/page.tsx"
click node_login_route "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/login/page.tsx"
click node_signup_route "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/signup/page.tsx"
click node_http_client "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/api/axios.ts"
click node_frontend_runtime "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/package.json"
click node_manage "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/manage.py"
click node_settings "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/config/settings.py"
click node_project_urls "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/config/urls.py"
click node_account_urls "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/urls.py"
click node_account_views "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/views.py"
click node_serializers "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/serializers.py"
click node_authentication "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/authenticate.py"
click node_account_model "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/models.py"
click node_migration "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/migrations/0001_initial.py"
click node_server_interfaces "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/config/asgi.py"
click node_build_script "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/build.sh"
click node_backend_dependencies "https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/requirements.txt"

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_next_shell,node_home_route,node_login_route,node_signup_route,node_http_client,node_frontend_runtime toneBlue
class node_manage,node_settings,node_project_urls,node_account_urls,node_account_views,node_serializers,node_authentication,node_account_model,node_migration,node_database,node_server_interfaces,node_build_script,node_backend_dependencies toneAmber
```

## Components

### Next.js frontend

- [App shell](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/layout.tsx): Next.js App Router · Composes shared layout and global browser styling. · `client/creative-hub/app/layout.tsx`
- [Home route](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/page.tsx): Next.js page · `client/creative-hub/app/page.tsx`
- [Login route](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/login/page.tsx): Next.js page · Collects login credentials. · `client/creative-hub/app/login/page.tsx`
- [Signup route](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/app/signup/page.tsx): Next.js page · Collects registration credentials. · `client/creative-hub/app/signup/page.tsx`
- [Axios API client](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/api/axios.ts): HTTP boundary · Centralizes browser requests and auth-related HTTP behavior. · `client/creative-hub/api/axios.ts`
- [Node / Next runtime](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/client/creative-hub/package.json): runtime dependencies · `client/creative-hub/package.json`

### Django backend

- [Django management entry](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/manage.py): Python entry point · `server/manage.py`
- [Project settings](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/config/settings.py): Django configuration · Composes apps, middleware, database, and authentication settings. · `server/config/settings.py`
- [Project URL router](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/config/urls.py): Django routing · `server/config/urls.py`
- [Account URL router](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/urls.py): Django routing · `server/apps/accounts/urls.py`
- [Account views](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/views.py): Django HTTP views · `server/apps/accounts/views.py`
- [Account serializers](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/serializers.py): serialization layer · Validates and shapes account API payloads. · `server/apps/accounts/serializers.py`
- [Authentication logic](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/authenticate.py): auth service · `server/apps/accounts/authenticate.py`
- [Account model](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/models.py): Django model · `server/apps/accounts/models.py`
- [Account schema migration](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/apps/accounts/migrations/0001_initial.py): Django migration · `server/apps/accounts/migrations/0001_initial.py`
- **Relational database**: persistence · Concrete database provider is not represented.
- [ASGI / WSGI interfaces](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/config/asgi.py): server interfaces · Expose alternate Django server deployment interfaces. · `server/config/asgi.py`
- [Backend build script](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/build.sh): deployment entry point · `server/build.sh`
- [Python / Django dependencies](https://github.com/pavanbhargav/vbond-creatives-hub/blob/main/server/requirements.txt): runtime dependencies · `server/requirements.txt`

## Connections

- App shell → Home route: renders route
- App shell → Login route: composes
- App shell → Signup route: composes
- Login route → Axios API client: submits credentials
- Signup route → Axios API client: submits registration
- Axios API client → Project URL router: HTTP account requests
- Django management entry → Project settings: loads
- Project settings → Project URL router: configures
- Project URL router → Account URL router: delegates account paths
- Account URL router → Account views: routes requests
- Account views → Account serializers: validates payloads
- Account views → Authentication logic: authenticates
- Account serializers → Account model: maps account data
- Authentication logic → Account model: verifies accounts
- Account model → Relational database: persists
- Account schema migration → Relational database: evolves schema
- Project settings → Account model: installs app
- ASGI / WSGI interfaces → Project settings: boots project
- Backend build script → ASGI / WSGI interfaces: deploys service
- Node / Next runtime → App shell: runs
- Python / Django dependencies → Django management entry: provides Django runtime
