# mayur-666/conquest_minor architecture

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

- Interactive diagram: https://gitdiagram.com/mayur-666/conquest_minor
- Repository: https://github.com/mayur-666/conquest_minor

## Overview

##### Project type and purpose
- This is a single-page front-end web application built with React and Vite.
- It provides user interfaces for pages such as Home, Category, Interview, History, Profile, etc., and uses Redux for state management.

##### File structure
- Top-level config files:
- vite.config.js – Vite dev/build configuration
- .eslintrc.cjs – ESLint rules
- package.json / package-lock.json – dependencies and scripts
- Public assets:
- index.html, public/ – base HTML and static assets
- Source code under src/:
- src/main.jsx and src/index.css – app entry point and global styles
- src/App.jsx – root React component; setup for Router and layout
- src/components/ – reusable presentational components (Dashboard, Navigation, Footer, etc.)
- src/pages/ – page-level components mapped to routes
- src/actions/userActions.js – async action creators (API calls)
- src/slices/userSlice.js – Redux slice for user state
- src/store/store.js – Redux store configuration
- src/utils/ProtectedRoute.jsx – route protection wrapper

##### README
- Confirms the project is a minimal React + Vite template with ESLint support
- Mentions plugins for HMR but no backend described

– Rectangles for system components (Browser, Vite Server)
– Blue for presentation (UI components, pages)
– Green for state management (store, slices, actions)
– Orange for infrastructure (Vite, CDN, Browser)
– From Browser to Vite/Static Host (HTTP requests)
– From App to Router and to Redux store
– From components to action creators (userActions)
– From action creators to external APIs and back to store
- Arrowheads with event names where useful (e.g., “dispatch login”, “fetch user data”)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Infrastructure Layer
    subgraph "Infrastructure"
        BROWSER["Browser"]:::infra
        VITE["Vite Dev Server"]:::infra
        CDN["Static Host/CDN"]:::infra
        BROWSER -->|HTTP request| VITE
        BROWSER -->|HTTP request| CDN
    end

    %% Application Core
    subgraph "Application Core"
        subgraph "Entry & Layout"
            ENTRY["main.jsx"]:::app
            CSS["index.css"]:::app
            APP["App.jsx"]:::app
            ENTRY --> CSS
            ENTRY --> APP
        end

        subgraph "Routing"
            ROUTER["React Router"]:::app
            PROTECTED["ProtectedRoute.jsx"]:::app
            APP --> ROUTER
            ROUTER --> PROTECTED
        end

        subgraph "Pages & Components"
            subgraph "Page Containers"
                Home["HomePage"]:::presentation
                Category["CategoryPage"]:::presentation
                Interview["InterviewPage"]:::presentation
                History["HistoryPage"]:::presentation
                Landing["LandingPage"]:::presentation
                Login["LoginPage"]:::presentation
                Register["RegisterLogin"]:::presentation
                Profile["ProfilePage"]:::presentation
                Report["ReportPage"]:::presentation
                Upgrade["UpgradeProfilePage"]:::presentation
            end

            subgraph "UI Components"
                Performance["Performance"]:::presentation
                Progress["ProgressBar"]:::presentation
                InterviewInfo["InterviewInfo"]:::presentation
                ProfileInfo["ProfileInfo"]:::presentation
                Sample["Sample"]:::presentation
                DashCSS["Dashboard.css"]:::presentation
                Navbar["Navbar"]:::presentation
                Sidebar["Sidebar"]:::presentation
                SpeedDial["SpeedDial"]:::presentation
                NavCSS["Nav.css"]:::presentation
                Footer["Footer"]:::presentation
            end
            Home --> Performance
            Home --> Progress
            Home --> InterviewInfo
            Home --> ProfileInfo
            Home --> Sample
            Home --> DashCSS
            APP --> Navbar
            APP --> Sidebar
            APP --> SpeedDial
            APP --> NavCSS
            APP --> Footer
        end
    end

    %% Redux Layer
    subgraph "Redux Layer"
        STORE["store.js"]:::state
        SLICE["userSlice.js"]:::state
        ACTIONS["userActions.js"]:::state
        STORE --> SLICE
        STORE --> ACTIONS
    end

    %% External Services
    API["External APIs/Services"]:::external

    %% Data Flow
    Performance -->|dispatch action| ACTIONS
    Category -->|dispatch action| ACTIONS
    ACTIONS -->|API call| API
    API -->|response| STORE
    STORE -->|state update| Performance
    STORE -->|state update| Home

    %% Connections between layers
    ENTRY --> STORE
    APP --> STORE

    %% Click Events
    click ENTRY "https://github.com/mayur-666/conquest_minor/blob/main/src/main.jsx"
    click CSS "https://github.com/mayur-666/conquest_minor/blob/main/src/index.css"
    click APP "https://github.com/mayur-666/conquest_minor/blob/main/src/App.jsx"
    click PROTECTED "https://github.com/mayur-666/conquest_minor/blob/main/src/utils/ProtectedRoute.jsx"
    click STORE "https://github.com/mayur-666/conquest_minor/blob/main/src/store/store.js"
    click SLICE "https://github.com/mayur-666/conquest_minor/blob/main/src/slices/userSlice.js"
    click ACTIONS "https://github.com/mayur-666/conquest_minor/blob/main/src/actions/userActions.js"
    click Performance "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Dashboard/Performance.jsx"
    click Progress "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Dashboard/ProgressBar.jsx"
    click InterviewInfo "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Dashboard/InterviewInfo.jsx"
    click ProfileInfo "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Dashboard/ProfileInfo.jsx"
    click Sample "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Dashboard/Sample.jsx"
    click DashCSS "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Dashboard/Dashboard.css"
    click Navbar "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Navigation/Navbar.jsx"
    click Sidebar "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Navigation/Sidebar.jsx"
    click SpeedDial "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Navigation/SpeedDial.jsx"
    click NavCSS "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Navigation/Nav.css"
    click Footer "https://github.com/mayur-666/conquest_minor/blob/main/src/components/Footer/Footer.jsx"
    click Home "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Home Page/Dashboard.jsx"
    click Category "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Category Page/JobCategory.jsx"
    click Interview "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Interview Page/InterviewPage.jsx"
    click History "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/History Page/History.jsx"
    click Landing "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Landing Page/LandingPage.jsx"
    click Login "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Login Page/Login.jsx"
    click Register "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Login Page/RegisterLogin.jsx"
    click Profile "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Profile Page/Profile.jsx"
    click Report "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Report Page/ReportPage.jsx"
    click Upgrade "https://github.com/mayur-666/conquest_minor/blob/main/src/pages/Upgrade Profile/UpgradeProfile.jsx"

    %% Styles
    classDef infra fill:#FDD835,stroke:#333,stroke-width:1px
    classDef app fill:#42A5F5,stroke:#333,stroke-width:1px
    classDef presentation fill:#90CAF9,stroke:#333,stroke-width:1px
    classDef state fill:#66BB6A,stroke:#333,stroke-width:1px
    classDef external fill:#B0BEC5,stroke:#333,stroke-width:1px
```
