# tejakumar123/eventmap_frontend architecture

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

- Interactive diagram: https://gitdiagram.com/tejakumar123/eventmap_frontend
- Repository: https://github.com/tejakumar123/eventmap_frontend

## Overview

##### Main Components Structure

A. Client Layer (Frontend Application)
- Divide into three main modules based on user roles:
- Admin Module
- Speaker Module
- Participant Module

B. State Management Layer
- Redux Store with its slices:
- Auth Slice
- Session Slice
- User Slice
- Feedback Slice
- Registration Slice
- Other Slice

C. External Services Layer
- Google OAuth 2.0
- Backend API Connection
- Redis (for session management)
- MongoDB (database interactions)

##### Component Organization

**Pages Layer**
- Home Page
- Dashboard
- Admin Panel
- Speaker Panel
- Participant Panel

**Components Layer**
- Major Components
- Admin Components
- Speaker Components
- Participant Components
- Basic Components
- Admin Components
- Speaker Components
- Participant Components

##### Data Flow Representation

- User authentication flow
- Session management flow
- CRUD operations flow
- Feedback submission flow

##### Specific Implementation Details

Technical aspects:
- React + Vite setup
- TailwindCSS styling system
- Redux store configuration
- Route management structure

##### Key Interactions to Highlight

Crucial flows:
- Session approval process
- Feedback submission system
- User registration and authentication
- Session enrollment mechanism

##### Component Relationships

Connections:
- Admin-Speaker session approval flow
- Speaker-Participant session interaction
- Feedback collection and display system

##### Additional Elements

Include:
- Version information
- External dependency connections
- API integration points

- Role-based access control
- Session management workflow
- User interaction patterns
- State management structure

Remember to:
- Use clear, consistent symbols
- Major feature flows
- Security boundaries
- Data persistence points
- Authentication checkpoints

This structure will provide a clear understanding of the application's architecture while maintaining the necessary detail level for implementation and maintenance.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client["Client Layer"]
        App["React Application"]:::core
        click App "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/App.jsx"
    end

    subgraph Pages["Pages Layer"]
        Dashboard["Dashboard"]:::page
        AdminPanel["Admin Panel"]:::page
        SpeakerPanel["Speaker Panel"]:::page
        ParticipantPanel["Participant Panel"]:::page

        click Dashboard "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/pages/dashboard.jsx"
        click AdminPanel "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/pages/admin.jsx"
        click SpeakerPanel "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/pages/speaker.jsx"
        click ParticipantPanel "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/pages/participant.jsx"
    end

    subgraph StateManagement["State Management Layer"]
        Store["Redux Store"]:::store
        AuthSlice["Auth Slice"]:::slice
        SessionSlice["Session Slice"]:::slice
        UserSlice["User Slice"]:::slice
        FeedbackSlice["Feedback Slice"]:::slice
        RegSlice["Registration Slice"]:::slice
        OtherSlice["Other Slice"]:::slice

        click Store "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/store/store.jsx"
        click AuthSlice "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/store/slices/authSlice.jsx"
        click SessionSlice "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/store/slices/sessionSlice.jsx"
        click UserSlice "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/store/slices/userSlice.jsx"
        click FeedbackSlice "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/store/slices/feedbackSlice.jsx"
        click RegSlice "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/store/slices/registrationSlice.jsx"
        click OtherSlice "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/store/slices/otherSlice.jsx"
    end

    subgraph Components["Components Layer"]
        subgraph Auth["Authentication"]
            Login["Login"]:::auth
            Signup["Signup"]:::auth
            click Login "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/home/login.jsx"
            click Signup "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/home/signup.jsx"
        end

        subgraph AdminComp["Admin Components"]
            AdminContent["Admin Content"]:::admin
            AdminSession["Session Management"]:::admin
            SessionAdd["Session Add"]:::admin
            SessionEdit["Session Edit"]:::admin
            SessionView["Session View"]:::admin
            SessionRequest["Session Request"]:::admin
            AdminFeedback["Admin Feedback"]:::admin

            click AdminContent "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/admin/Admin_content.jsx"
            click AdminSession "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/admin/Admin_session.jsx"
            click SessionAdd "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/admin/Session_add.jsx"
            click SessionEdit "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/admin/Session_edit.jsx"
            click SessionView "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/admin/Session_view.jsx"
            click SessionRequest "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/admin/Session_request.jsx"
            click AdminFeedback "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/basic/admin/Admin_feedback.jsx"
        end

        subgraph SpeakerComp["Speaker Components"]
            SpeakerContent["Speaker Content"]:::speaker
            SpeakerSession["Session Management"]:::speaker
            SpeakerFeedback["Speaker Feedback"]:::speaker

            click SpeakerContent "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/speaker/Speaker_content.jsx"
            click SpeakerSession "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/speaker/Speaker_session.jsx"
            click SpeakerFeedback "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/basic/speaker/Speaker_feedback.jsx"
        end

        subgraph ParticipantComp["Participant Components"]
            ParticipantContent["Participant Content"]:::participant
            ParticipantSession["Session Management"]:::participant
            ParticipantFeedback["Participant Feedback"]:::participant

            click ParticipantContent "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/participant/Participant_content.jsx"
            click ParticipantSession "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/major/participant/Participant_session.jsx"
            click ParticipantFeedback "https://github.com/TejaKumar123/eventmap_frontend/blob/main/src/components/basic/participant/Participant_feedback.jsx"
        end
    end

    subgraph External["External Services"]
        GoogleOAuth["Google OAuth 2.0"]:::external
        BackendAPI["Backend API"]:::external
        Redis["Redis Session Store"]:::external
        MongoDB["MongoDB Database"]:::external
    end

    %% Connections
    App --> Pages
    App --> Components
    Components --> StateManagement
    StateManagement --> External
    Auth --> BackendAPI
    AdminComp --> BackendAPI
    SpeakerComp --> BackendAPI
    ParticipantComp --> BackendAPI

    %% Styles
    classDef core fill:#2563eb,color:white
    classDef page fill:#3b82f6,color:white
    classDef store fill:#059669,color:white
    classDef slice fill:#10b981,color:white
    classDef auth fill:#7c3aed,color:white
    classDef admin fill:#dc2626,color:white
    classDef speaker fill:#ea580c,color:white
    classDef participant fill:#0284c7,color:white
    classDef external fill:#4b5563,color:white
```
