# atlp-rwanda/atlp-devpulse-fn architecture

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

- Interactive diagram: https://gitdiagram.com/atlp-rwanda/atlp-devpulse-fn
- Repository: https://github.com/atlp-rwanda/atlp-devpulse-fn

## Overview

##### Main System Components

a. Core Application Layer
- React Application Core (src/App.tsx as the entry point)
- Redux State Management System (src/redux directory)
- Route Management System (src/routes directory)

b. Feature Modules
- Authentication & Authorization
- User Management
- Application Management
- Cohort Management
- Training Programs
- Performance Tracking
- Documentation System
- Notification System
- Ticket Management

c. Shared Infrastructure
- API Integration Layer
- File Upload System
- Real-time Updates (Pusher)
- Authentication Services

**[UI Components Layer]**
- ↓
**[Feature Modules Layer]**
- ↓
**[Core Services Layer]**
- ↓
**[State Management Layer]**
- ↓
**[API Integration Layer]**

##### Component Relationships

- Redux action/reducer flows
- API request/response paths
- Real-time event streams
- File upload/download paths

##### Specific Implementation Details

Technical elements:
- Redux store structure
- React component hierarchy
- Authentication flow
- File handling system
- Real-time notification system

##### External Services Integration

Connections to:
- Backend API
- Cloud storage (for images)
- Pusher service
- Authentication providers

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph UI
        RC[React Components]
        Forms[Forms & Inputs]:::auth
        click Forms "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/components/form/"
    end

    subgraph "Feature Modules"
        direction TB
        Auth[Authentication]:::auth
        click Auth "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/components/form/"
        UserMgmt[User Management]:::feature
        click UserMgmt "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/pages/roles&permissions/"
        AppMgmt[Application Management]:::feature
        click AppMgmt "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/pages/Applications/"
        CohortMgmt[Cohort Management]:::feature
        click CohortMgmt "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/pages/Cohort/"
        Training[Training Programs]:::feature
        click Training "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/pages/programs/"
        Performance[Performance Tracking]:::feature
        click Performance "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/components/Performance/"
        Docs[Documentation System]:::feature
        click Docs "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/pages/documents/"
        Notifications[Notification System]:::feature
        click Notifications "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/pages/AdminNotifications/"
        Tickets[Ticket Management]:::feature
        click Tickets "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/pages/tickets/"
    end

    subgraph "Core Services"
        App[App Core]:::core
        click App "https://github.com/atlp-rwanda/atlp-devpulse-fn/blob/develop/src/App.tsx"
        Router[Route Management]:::core
        click Router "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/routes/"
        FileUpload[File Upload Service]:::service
        click FileUpload "https://github.com/atlp-rwanda/atlp-devpulse-fn/blob/develop/src/utils/uploadImageToCloudinary.ts"
        RealTime[Real-time Updates]:::service
        click RealTime "https://github.com/atlp-rwanda/atlp-devpulse-fn/blob/develop/src/utils/adminNotifications/pusher.ts"
        AuthService[Auth Service]:::service
        click AuthService "https://github.com/atlp-rwanda/atlp-devpulse-fn/blob/develop/src/redux/actions/login.ts"
    end

    subgraph "State Management"
        Redux[Redux Store]:::state
        click Redux "https://github.com/atlp-rwanda/atlp-devpulse-fn/tree/develop/src/redux/"
        Actions[Actions]:::state
        Reducers[Reducers]:::state
    end

    subgraph "External Integration"
        API[API Layer]:::external
        click API "https://github.com/atlp-rwanda/atlp-devpulse-fn/blob/develop/src/redux/actions/axiosconfig.ts"
        CloudStorage[Cloud Storage]:::external
        PusherService[Pusher Service]:::external
    end

    %% Connections
    RC --> Forms
    Forms --> Auth
    Auth --> AuthService
    AuthService --> Redux
    Redux --> Actions
    Actions --> Reducers
    Reducers --> Redux
    
    FileUpload --> CloudStorage
    RealTime --> PusherService
    
    API --> Redux
    
    Auth --> API
    UserMgmt --> API
    AppMgmt --> API
    CohortMgmt --> API
    Training --> API
    Performance --> API
    Docs --> API
    Notifications --> API
    Tickets --> API

    %% Styles
    classDef core fill:#2196F3,color:white
    classDef feature fill:#4CAF50,color:white
    classDef service fill:#FF9800,color:white
    classDef state fill:#9C27B0,color:white
    classDef external fill:#757575,color:white
    classDef auth fill:#E91E63,color:white

    %% Legend
    subgraph Legend
        L1[Core Components]:::core
        L2[Feature Modules]:::feature
        L3[Services]:::service
        L4[State Management]:::state
        L5[External Services]:::external
        L6[Authentication]:::auth
    end
```
