# rafaelpoddis/vapor architecture

> Architecture diagram of the GitHub repository rafaelpoddis/vapor, 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/rafaelpoddis/vapor
- Repository: https://github.com/rafaelpoddis/vapor

## Overview

Vapor is a Steam-like game storefront: users browse a catalog, view game details and reviews, purchase games into a library, and manage profiles or publish games. The Vue router mounts storefront pages; sampled pages make HTTP requests to Django REST endpoints, whose views use serializers and Django models. The README also lists downloads, but the sampled code does not establish a download flow. Some major pages and backend routes are indexed but unsampled, so their internal links are omitted where evidence is unavailable.

Main entry points: [`frontend/vapor/src/router.js`](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/router.js) (Page router), [`backend/testApp/urls.py`](https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/urls.py) (API routes), [`backend/testApp/models.py`](https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/models.py) (Domain models), [`frontend/vapor/src/views/GamePage.vue`](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/GamePage.vue) (Game details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Vue storefront"]
  node_router["Page router<br/>[router.js]"]
  node_layout["Store layout<br/>[Layout.vue]"]
  node_catalog["Game catalog<br/>[HomePage.vue]"]
  node_gamepage["Game details<br/>[GamePage.vue]"]
  node_reviews["Review cards<br/>[UserReviewCard.vue]"]
  node_library["User library<br/>[Library.vue]"]
  node_login["Login<br/>[Login.vue]"]
  node_profile["User profile<br/>[Profile.vue]"]
  node_upload["Game publishing<br/>[UploadGame.vue]"]
end

subgraph group_api["Django API"]
  node_api_routes["API routes<br/>[urls.py]"]
  node_game_api["Game endpoints<br/>[views.py]"]
  node_account_api["Account endpoints<br/>[views.py]"]
  node_genre_api["Genre endpoints<br/>[views.py]"]
  node_serializers["API serializers<br/>[serializer.py]"]
end

subgraph group_domain["Game domain"]
  node_models["Domain models<br/>[models.py]"]
  node_database[("Relational database")]
end

node_visitor(("Store user"))

node_visitor -->|"navigates"| node_router
node_router -->|"mounts routes"| node_layout
node_router -->|"routes to"| node_catalog
node_router -->|"routes to"| node_gamepage
node_router -->|"routes to"| node_library
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_profile
node_router -->|"routes to"| node_upload
node_gamepage -->|"renders"| node_reviews
node_gamepage -->|"fetches detail"| node_api_routes
node_gamepage -->|"posts review"| node_api_routes
node_profile -->|"requests profile"| node_api_routes
node_upload -->|"requests genres"| node_api_routes
node_upload -->|"submits game"| node_api_routes
node_api_routes -->|"dispatches"| node_game_api
node_api_routes -->|"dispatches"| node_account_api
node_api_routes -->|"dispatches"| node_genre_api
node_game_api -->|"serializes"| node_serializers
node_account_api -->|"serializes"| node_serializers
node_genre_api -.->|"serializes"| node_serializers
node_game_api -->|"reads and writes"| node_models
node_account_api -.->|"reads and writes"| node_models
node_genre_api -.->|"reads and writes"| node_models
node_serializers -->|"maps records"| node_models
node_models -.->|"persists"| node_database

click node_router "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/router.js"
click node_layout "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/components/Layout.vue"
click node_catalog "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/HomePage.vue"
click node_gamepage "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/GamePage.vue"
click node_reviews "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/components/UserReviewCard.vue"
click node_library "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/Library.vue"
click node_login "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/Login.vue"
click node_profile "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/Profile.vue"
click node_upload "https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/UploadGame.vue"
click node_api_routes "https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/urls.py"
click node_game_api "https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/views.py"
click node_account_api "https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/views.py"
click node_genre_api "https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/views.py"
click node_serializers "https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/serializer.py"
click node_models "https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/models.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_router,node_layout,node_catalog,node_gamepage,node_reviews,node_library,node_login,node_profile,node_upload,node_visitor toneBlue
class node_api_routes,node_game_api,node_account_api,node_genre_api,node_serializers toneAmber
class node_models,node_database toneMint
```

## Components

### Vue storefront

- [Page router](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/router.js): `frontend/vapor/src/router.js`
- [Store layout](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/components/Layout.vue): `frontend/vapor/src/components/Layout.vue`
- [Game catalog](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/HomePage.vue): `frontend/vapor/src/views/HomePage.vue`
- [Game details](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/GamePage.vue): `frontend/vapor/src/views/GamePage.vue`
- [Review cards](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/components/UserReviewCard.vue): `frontend/vapor/src/components/UserReviewCard.vue`
- [User library](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/Library.vue): `frontend/vapor/src/views/Library.vue`
- [Login](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/Login.vue): `frontend/vapor/src/views/Login.vue`
- [User profile](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/Profile.vue): `frontend/vapor/src/views/Profile.vue`
- [Game publishing](https://github.com/rafaelpoddis/vapor/blob/main/frontend/vapor/src/views/UploadGame.vue): `frontend/vapor/src/views/UploadGame.vue`

### Django API

- [API routes](https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/urls.py): `backend/testApp/urls.py`
- [Game endpoints](https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/views.py): `backend/testApp/views.py`
- [Account endpoints](https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/views.py): `backend/testApp/views.py`
- [Genre endpoints](https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/views.py): `backend/testApp/views.py`
- [API serializers](https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/serializer.py): `backend/testApp/serializer.py`

### Game domain

- [Domain models](https://github.com/rafaelpoddis/vapor/blob/main/backend/testApp/models.py): `backend/testApp/models.py`
- **Relational database**

### Other components

- **Store user**

## Connections

- Store user → Page router: navigates (evidence: `frontend/vapor/src/router.js`)
- Page router → Store layout: mounts routes (evidence: `frontend/vapor/src/router.js`)
- Page router → Game catalog: routes to (evidence: `frontend/vapor/src/router.js`)
- Page router → Game details: routes to (evidence: `frontend/vapor/src/router.js`)
- Page router → User library: routes to (evidence: `frontend/vapor/src/router.js`)
- Page router → Login: routes to (evidence: `frontend/vapor/src/router.js`)
- Page router → User profile: routes to (evidence: `frontend/vapor/src/router.js`)
- Page router → Game publishing: routes to (evidence: `frontend/vapor/src/router.js`)
- Game details → Review cards: renders (evidence: `frontend/vapor/src/views/GamePage.vue`)
- Game details → API routes: fetches detail (evidence: `frontend/vapor/src/views/GamePage.vue`)
- Game details → API routes: posts review (evidence: `frontend/vapor/src/views/GamePage.vue`)
- User profile → API routes: requests profile (evidence: `frontend/vapor/src/views/Profile.vue`)
- Game publishing → API routes: requests genres (evidence: `frontend/vapor/src/views/UploadGame.vue`)
- Game publishing → API routes: submits game (evidence: `frontend/vapor/src/views/UploadGame.vue`)
- API routes → Game endpoints: dispatches (evidence: `backend/testApp/urls.py`)
- API routes → Account endpoints: dispatches (evidence: `backend/testApp/urls.py`)
- API routes → Genre endpoints: dispatches (evidence: `backend/testApp/urls.py`)
- Game endpoints → API serializers: serializes (evidence: `backend/testApp/views.py`)
- Account endpoints → API serializers: serializes (evidence: `backend/testApp/views.py`)
- Genre endpoints → API serializers: serializes (evidence: `backend/testApp/views.py`)
- Game endpoints → Domain models: reads and writes (evidence: `backend/testApp/views.py`)
- Account endpoints → Domain models: reads and writes (evidence: `backend/testApp/views.py`)
- Genre endpoints → Domain models: reads and writes (evidence: `backend/testApp/views.py`)
- API serializers → Domain models: maps records (evidence: `backend/testApp/serializer.py`)
- Domain models → Relational database: persists
