# mrak47anand007/placify architecture

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

- Interactive diagram: https://gitdiagram.com/mrak47anand007/placify
- Repository: https://github.com/mrak47anand007/placify

## Overview

##### Main Components Identification

a) Frontend Layer:
- React Native Mobile Application (placify_frontend)
- Authentication Screens
- Master Admin Interface
- Student Interface
- Resume Management System

b) Backend Layer:
- Spring Boot Application (Placify)
- REST Controllers
- Service Layer
- Security Components
- Data Access Layer

c) External Services:
- AWS Services
- PostgreSQL Database
- PDF Generation Service
- Storage Service

- Frontend     | --> |    Backend     | --> |   Database     |
- (React Native)|     | (Spring Boot)  |     |  (PostgreSQL)  |

##### Detailed Component Breakdown

- Authentication Module
- Master Admin Dashboard
- Student Dashboard
- Resume Builder
- Job Management
- Communication

- API Controllers
- Auth Controller
- Admin Controller
- Student Controller
- Resume Controller
- Job Application Controller
- Service Layer
- User Service
- Resume Service
- Company Service
- Job Application Service
- Security Layer
- JWT Authentication
- Role-based Access Control

- User Management Tables
- Resume Management Tables
- Company Management Tables
- Job Application Tables

##### Connection and Flow Representation

- File operations (thick lines)

##### Additional Details

Annotations for:
- Security mechanisms
- Scalability points
- Integration points
- Data flow directions

##### Technical Stack Indicators

Components with their respective technologies:
- Frontend: React Native
- Backend: Spring Boot
- Database: PostgreSQL
- Authentication: JWT
- File Storage: AWS

Remember to highlight the cross-platform nature of the application and how different components interact to support both training and placement functionalities.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles
    classDef frontend fill:#d0e1f9,stroke:#333
    classDef backend fill:#d4edda,stroke:#333
    classDef database fill:#fff3cd,stroke:#333
    classDef external fill:#f8d7da,stroke:#333
    classDef security fill:#e2e3e5,stroke:#333

    %% Frontend Layer
    subgraph Frontend
        AuthUI["Authentication UI"]:::frontend
        MasterAdminUI["Master Admin Interface"]:::frontend
        StudentUI["Student Interface"]:::frontend
        ResumeUI["Resume Management UI"]:::frontend
        JobUI["Job Management UI"]:::frontend
    end

    %% Backend Layer
    subgraph Backend
        AuthController["Auth Controller"]:::backend
        MasterController["Master Admin Controller"]:::backend
        StudentController["Student Controller"]:::backend
        ResumeController["Resume Controller"]:::backend
        JobController["Job Application Controller"]:::backend
        
        subgraph Services
            UserService["User Service"]:::backend
            ResumeService["Resume Service"]:::backend
            CompanyService["Company Service"]:::backend
            JobService["Job Service"]:::backend
            PdfService["PDF Generation Service"]:::backend
        end
        
        subgraph Security
            JWT["JWT Authentication"]:::security
            RBAC["Role-based Access"]:::security
        end
    end

    %% Data Layer
    subgraph Data
        DB[(PostgreSQL)]:::database
        Storage["AWS Storage"]:::external
    end

    %% Connections
    AuthUI --> AuthController
    MasterAdminUI --> MasterController
    StudentUI --> StudentController
    ResumeUI --> ResumeController
    JobUI --> JobController

    AuthController --> UserService
    MasterController --> CompanyService
    StudentController --> UserService
    ResumeController --> ResumeService
    JobController --> JobService

    UserService --> DB
    ResumeService --> DB
    CompanyService --> DB
    JobService --> DB
    
    ResumeService --> PdfService
    PdfService --> Storage

    %% Security Flow
    AuthController --> JWT
    JWT --> RBAC
    RBAC --> UserService

    %% Click Events
    click AuthUI "https://github.com/MrAk47Anand007/Placify/tree/main/placify_frontend/srceens/Authentication/"
    click AuthController "https://github.com/MrAk47Anand007/Placify/blob/main/Placify/src/main/java/com/training/placify/controller/AuthController.java"
    click MasterAdminUI "https://github.com/MrAk47Anand007/Placify/tree/main/placify_frontend/srceens/Master-Admin/"
    click MasterController "https://github.com/MrAk47Anand007/Placify/tree/main/Placify/src/main/java/com/training/placify/controller/MasterAdmin/"
    click StudentUI "https://github.com/MrAk47Anand007/Placify/tree/main/placify_frontend/srceens/Student-Login/"
    click StudentController "https://github.com/MrAk47Anand007/Placify/tree/main/Placify/src/main/java/com/training/placify/controller/StudentApi/"
    click ResumeUI "https://github.com/MrAk47Anand007/Placify/tree/main/placify_frontend/srceens/Student-Login/Resume_Components/"
    click ResumeController "https://github.com/MrAk47Anand007/Placify/blob/main/Placify/src/main/java/com/training/placify/controller/ResumeController.java"
    click JobUI "https://github.com/MrAk47Anand007/Placify/blob/main/placify_frontend/srceens/Student-Login/S_Jobs.js"
    click JobController "https://github.com/MrAk47Anand007/Placify/blob/main/Placify/src/main/java/com/training/placify/controller/StudentApi/JobApplicationController.java"
    click JWT "https://github.com/MrAk47Anand007/Placify/tree/main/Placify/src/main/java/com/training/placify/security/jwtAuth/"
    click RBAC "https://github.com/MrAk47Anand007/Placify/blob/main/Placify/src/main/java/com/training/placify/security/SecurityConfig.java"
    click PdfService "https://github.com/MrAk47Anand007/Placify/blob/main/Placify/src/main/java/com/training/placify/service/Implementation/PdfGenerationTask.java"
```
