# krishkhinchi/assignment_ru architecture

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

- Interactive diagram: https://gitdiagram.com/krishkhinchi/assignment_ru
- Repository: https://github.com/krishkhinchi/assignment_ru

## Overview

##### Main Components Identification
The project appears to be a collection of different programming practices and assignments, with three main components:

a) Backend Applications (2 versions)
b) C++ Programming Practice
c) Frontend Exercises

##### Structural Organization

A. Repository Root Level (TryAtRU)
- Use a large container to represent the main repository

B. Backend Section (Show both versions)
- Create two parallel subsystems for both Backend implementations
- For each Backend, show:
- Configuration Layer (db.js)
- Model Layer (user-related schemas)
- Server Component (server.js)
- Database Connection

C. Frontend Section (FE)
- As a collection of HTML exercises
- Related questions together
- Potential interactions between questions if any exist

D. C++ Section
- As a collection of programming exercises
- Question set organization

Use the following elements:
- Rectangle containers for main sections (Backend, Frontend, C++)
- Rounded rectangles for individual components
- Blue: Backend components
- Green: Frontend components
- Yellow: C++ components
- Gray: Configuration files

##### Component Relationships

- Database configuration to server
- User models to server
- Related exercise files together

**[TryAtRU Repository]**
- ┬─────────────────────┬─────────────────────┐
- Backend (2x)     │     Frontend        │       C++           │

- ┌─────────────┐     │ ┌─────────────┐     │ ┌─────────────┐      │
- Config       │     │ │End Sem      │     │ │Set1         │      │
- db.js    │     │ │  - Q1-Q10   │     │ │  - Q1-Q7    │      │
- ┘     │ └─────────────┘     │ └─────────────┘      │
- ┌─────────────┐     │                     │                      │
- Model        │     │                     │                      │
- user     │     │                     │                      │
- ┘     │                     │                      │
- ┌─────────────┐     │                     │                      │
- Server       │     │                     │                      │
- ┘     │                     │                      │
- ┴─────────────────────┴─────────────────────┘

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph TryAtRU["TryAtRU Repository"]
        subgraph Backend1["Backend Version 1"]
            direction TB
            Config1["Configuration Layer"]:::config
            Model1["Model Layer"]:::model
            Server1["Server Component"]:::server
            DB1[(Database)]:::database
            
            Config1 --> Server1
            Model1 --> Server1
            Server1 --> DB1
        end

        subgraph Backend2["Backend Version 2"]
            direction TB
            Config2["Configuration Layer"]:::config
            Model2["Model Layer"]:::model
            Server2["Server Component"]:::server
            DB2[(Database)]:::database
            
            Config2 --> Server2
            Model2 --> Server2
            Server2 --> DB2
        end

        subgraph Frontend["Frontend Exercises"]
            direction TB
            EndSem["End Sem Exercises"]:::frontend
            Q1_10["Questions 1-10"]:::frontend
            
            EndSem --> Q1_10
        end

        subgraph CPP["C++ Programming"]
            direction TB
            Set1["Set 1"]:::cpp
            Q1_7["Questions 1-7"]:::cpp
            
            Set1 --> Q1_7
        end
    end

    %% Click events for component mapping
    click Config1 "https://github.com/krishkhinchi/Assignment_RU/blob/main/AdilSir/23jan2025/config/db.js"
    click Model1 "https://github.com/krishkhinchi/Assignment_RU/blob/main/AdilSir/23jan2025/model/userSchema.js"
    click Server1 "https://github.com/krishkhinchi/Assignment_RU/blob/main/AdilSir/23jan2025/server.js"
    click Config2 "https://github.com/krishkhinchi/Assignment_RU/blob/main/AdilSir/Backend/Config/db.js"
    click Model2 "https://github.com/krishkhinchi/Assignment_RU/blob/main/AdilSir/Backend/Model/userModel.js"
    click Server2 "https://github.com/krishkhinchi/Assignment_RU/blob/main/AdilSir/Backend/server.js"
    click Set1 "https://github.com/krishkhinchi/Assignment_RU/tree/main/C++/Set1/"
    click EndSem "https://github.com/krishkhinchi/Assignment_RU/tree/main/FE/End Sem/"

    %% Styling
    classDef config fill:#A8D1E7
    classDef model fill:#B8E6B8
    classDef server fill:#FFB6C1
    classDef database fill:#E6E6FA
    classDef frontend fill:#98FB98
    classDef cpp fill:#FFE4B5

    %% Legend
    subgraph Legend
        L1["Configuration"]:::config
        L2["Model"]:::model
        L3["Server"]:::server
        L4[(Database)]:::database
        L5["Frontend"]:::frontend
        L6["C++"]:::cpp
    end
```
