# frontend-park-mail-ru/2022_2_technopanki architecture

> Architecture diagram of the GitHub repository frontend-park-mail-ru/2022_2_technopanki, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/frontend-park-mail-ru/2022_2_technopanki
- Repository: https://github.com/frontend-park-mail-ru/2022_2_technopanki

## Overview

##### Main Components

a. Frontend Architecture:
- React-like Custom Framework Layer
- Custom React implementation (Reacts directory)
- Custom Flux implementation (Fluxs directory)
- JSX Runtime
- Virtual DOM Diffing Engine

b. Application Layer:
- Core Components
- UI Kit (extensive component library)
- Views (main application pages)
- Services (API communication)
- Store (state management)
- Router

c. Backend Integration:
- API Services
- Authentication System
- File Upload System

**[Client Layer]**
- ↓ ↑
**[Application Layer]**
- ↓ ↑
**[Server Layer]**

##### Detailed Component Breakdown

a. Frontend Framework Layer (Custom Implementation):
**[JSX Runtime] → [Virtual DOM] → [Diff Engine] → [DOM Updates]**
- ↑          ↑
**[Custom React Core] ← [Custom Flux Store]**

b. Application Architecture:
**[Views] → [Components] → [UI Kit]**
- ↓           ↓
**[Store] ← [Services] → [API Endpoints]**
- ↓
**[Router]**

##### Key Relationships to Highlight

- Flow between the custom React-like framework and the application code
- Flux pattern with store, actions, and reducers
- Demonstrate the relationship between services and API endpoints
- Routing system's integration with views

##### Implementation Details

- Rectangles: Core components
- Hexagons: Services
- Diamonds: Router/Navigation
- Circles: External services

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles and Classes
    classDef framework fill:#2196F3,stroke:#1565C0,color:white
    classDef application fill:#4CAF50,stroke:#388E3B,color:white
    classDef state fill:#FF9800,stroke:#F57C00,color:white
    classDef service fill:#9C27B0,stroke:#7B1FA2,color:white
    classDef external fill:#757575,stroke:#616161,color:white
    classDef infrastructure fill:#607D8B,stroke:#455A64,color:white

    %% Framework Layer
    subgraph Framework
        JSX["JSX Runtime"]:::framework
        VDOM["Virtual DOM"]:::framework
        DIFF["Diff Engine"]:::framework
        DOM["DOM Updates"]:::framework
        REACT["Custom React Core"]:::framework
        FLUX["Custom Flux"]:::framework

        JSX --> VDOM
        VDOM --> DIFF
        DIFF --> DOM
        REACT --> JSX
        REACT --> VDOM
        FLUX --> REACT
    end

    %% Application Layer
    subgraph Application
        ROUTER["Router System"]:::application
        VIEWS["Application Views"]:::application
        COMP["UI Kit Components"]:::application
        STORE["State Management"]:::state
        
        ROUTER --> VIEWS
        VIEWS --> COMP
        STORE --> VIEWS
    end

    %% Services Layer
    subgraph Services
        API["API Services"]:::service
        AUTH["Authentication"]:::service
        UPLOAD["File Upload"]:::service
        NOTIFY["Notification System"]:::service
        PROFILE["Profile Management"]:::service
        RESUME["Resume Management"]:::service
        VACANCY["Vacancy Management"]:::service
        
        API --> AUTH
        API --> UPLOAD
        API --> NOTIFY
        API --> PROFILE
        API --> RESUME
        API --> VACANCY
    end

    %% Infrastructure Layer
    subgraph Infrastructure
        NGINX["Nginx Server"]:::infrastructure
        BACKEND["Backend Server"]:::infrastructure
        
        NGINX --> BACKEND
    end

    %% Cross-layer connections
    Application --> Services
    Services --> Infrastructure
    Framework --> Application

    %% Click events for component mapping
    click REACT "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/blob/main/Reacts/reacts/src/Component.ts"
    click FLUX "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/Fluxs"
    click JSX "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/Reacts/jsx-runtime"
    click DIFF "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/Reacts/reacts-dom/diff"
    click COMP "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/components/UI-kit"
    click VIEWS "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/views"
    click API "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/services"
    click STORE "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/store"
    click ROUTER "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/router"
    click AUTH "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/services/auth"
    click UPLOAD "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/blob/main/src/components/UI-kit/forms/formInputs/FormFileInput.tsx"
    click BACKEND "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/blob/main/server/server.js"
    click NGINX "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/blob/main/.conf/.nginx"
    click NOTIFY "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/blob/main/src/services/notificationService.ts"
    click PROFILE "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/store/profile"
    click RESUME "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/services/resume"
    click VACANCY "https://github.com/frontend-park-mail-ru/2022_2_Technopanki/tree/main/src/services/vacancy"
```
