# darshan-aswathappa/web-dev-6150-final architecture

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

- Interactive diagram: https://gitdiagram.com/darshan-aswathappa/web-dev-6150-final
- Repository: https://github.com/darshan-aswathappa/web-dev-6150-final

## Overview

##### Main Components

a) Client-Side Components:
- Frontend Application (React)
- Public Pages (Home, About, Contact)
- Authentication Pages (Login, Registration, Password Reset)
- Protected Pages (Dashboard, Resume Upload, Chatbot)
- Admin Interface
- UI Component Library (TailwindCSS, Radix UI)

b) Server-Side Components (to be shown as external services):
- Authentication Service
- LLM Integration (OpenAI API, Anthropic API)
- Course Recommendation Engine
- Resume Processing Service
- Database Service

**[Client Layer]**
- ↕
**[API Layer]**
- ↕
**[Service Layer]**

##### Component Organization

Frontend Architecture (Detail View):
**[Public Routes] → [Protected Routes]**
- ↓               ↓
**[Layout Components]  [Dashboard Components]**
- ↓               ↓
**[UI Components] ← → [State Management (Zustand)]**

##### Key Elements to Highlight

a) Authentication Flow:
- Flow from login/registration through token-based session management
- Email verification process

b) Core Features:
- Resume Upload & Analysis Pipeline
- Course Recommendation Flow
- Chatbot Integration
- Admin Management Interface

##### Specific Implementation Details

**/components**
- dashboard/
- ui/
- upload-resume/

**/pages**
- public pages
- protected pages

**/store**
- Zustand stores

**/layout**
- Layout components

##### Infrastructure Elements

- Docker container boundaries
- NGINX configuration for routing
- Build pipeline components

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        FE[Frontend Application]
        
        subgraph Pages
            Public["Public Pages"]
            Auth["Authentication Pages"]
            Protected["Protected Pages"]
            Admin["Admin Interface"]:::admin
        end
        
        subgraph Components
            UI["UI Components"]:::ui
            Layout["Layout Components"]:::layout
            Dashboard["Dashboard Components"]:::dashboard
            Upload["Resume Upload"]:::upload
            Chatbot["Chatbot Interface"]:::chatbot
        end
        
        subgraph State
            Zustand["State Management"]:::state
            AuthStore["Auth Store"]:::state
            UploadStore["Upload Store"]:::state
            ChatStore["Chatbot Store"]:::state
            RecommendStore["Recommendation Store"]:::state
            AdminStore["Admin Store"]:::state
        end
    end
    
    subgraph Services
        Auth_Service["Authentication Service"]
        LLM["LLM Integration"]
        CourseRec["Course Recommendation Engine"]
        ResumeProc["Resume Processing Service"]
        DB["Database Service"]
    end
    
    %% Relationships
    Public --> Layout
    Auth --> Layout
    Protected --> Layout
    Protected --> Dashboard
    Protected --> Upload
    Protected --> Chatbot
    
    Dashboard --> Zustand
    Upload --> Zustand
    Chatbot --> Zustand
    
    Zustand --> AuthStore
    Zustand --> UploadStore
    Zustand --> ChatStore
    Zustand --> RecommendStore
    Zustand --> AdminStore
    
    AuthStore --> Auth_Service
    UploadStore --> ResumeProc
    ChatStore --> LLM
    RecommendStore --> CourseRec
    AdminStore --> DB
    
    %% Click Events
    click Public "https://github.com/darshan-aswathappa/web-dev-6150-final/tree/main/src/pages/home/"
    click Auth "https://github.com/darshan-aswathappa/web-dev-6150-final/tree/main/src/pages/login/"
    click UI "https://github.com/darshan-aswathappa/web-dev-6150-final/tree/main/src/components/ui/"
    click AuthStore "https://github.com/darshan-aswathappa/web-dev-6150-final/blob/main/src/store/authStore.jsx"
    click Upload "https://github.com/darshan-aswathappa/web-dev-6150-final/tree/main/src/components/upload-resume/"
    click Chatbot "https://github.com/darshan-aswathappa/web-dev-6150-final/blob/main/src/components/dashboard/chatbot.jsx"
    click Dashboard "https://github.com/darshan-aswathappa/web-dev-6150-final/tree/main/src/components/dashboard/"
    click Admin "https://github.com/darshan-aswathappa/web-dev-6150-final/tree/main/src/pages/admin/"
    click Zustand "https://github.com/darshan-aswathappa/web-dev-6150-final/tree/main/src/store/"
    click Layout "https://github.com/darshan-aswathappa/web-dev-6150-final/tree/main/src/layout/"
    click RecommendStore "https://github.com/darshan-aswathappa/web-dev-6150-final/blob/main/src/store/resume-recomendation.jsx"
    
    %% Styles
    classDef ui fill:#3498db
    classDef layout fill:#2ecc71
    classDef dashboard fill:#e74c3c
    classDef upload fill:#f1c40f
    classDef chatbot fill:#9b59b6
    classDef state fill:#1abc9c
    classDef admin fill:#34495e
    
    %% Legend
    subgraph Legend
        L1["UI Components"]:::ui
        L2["Layout"]:::layout
        L3["Dashboard"]:::dashboard
        L4["Upload"]:::upload
        L5["Chatbot"]:::chatbot
        L6["State"]:::state
        L7["Admin"]:::admin
    end
```
