# mquirico/proptech architecture

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

- Interactive diagram: https://gitdiagram.com/mquirico/proptech
- Repository: https://github.com/mquirico/proptech

## Overview

Based on our analysis of the file tree and README, Financia.al is a full-stack financing platform designed to facilitate transactions between investors and potential buyers in Latin America. The client (frontend) is a React application that leverages Redux for state management and Material UI for design, while the backend (described as a .NET service with Microsoft SQL Server for data persistence) handles the business logic, processing transactions, authentication, and communication with the database.

##### • Main Components
- Backend Service: Represent the .NET-based API or service layer that processes business logic. This component handles secure registration, credit simulation, financiamiento transactions, document uploads, and investor-related analytics.
- Database: Include the Microsoft SQL Server component as the persistent data layer where user data, transaction records, plan details, and credit metrics are stored.
- External Services (if applicable): Although not explicitly detailed, consider including nodes for any external data services or integrations (e.g., payment gateways, third-party identity validation, or analytics services) that might be used by the backend.

##### • Relationships and Data Flow
- Backend Service to the Database to represent data storage and retrieval operations.
- If there are any external services (or potential microservices) being used, illustrate their interaction with the backend.

##### • Architectural Patterns and Design Principles
- Separation of concerns between the presentation layer (React client) and the business logic (backend API).
- Use of Redux in the client by marking components related to state management, which suggests a unidirectional data flow for better predictability in the UI.
- Secure endpoints and data validation points, especially for registration, login, and financial transactions.

##### • Relevant Technologies and Frameworks
- For the Backend, note the usage of .NET and highlight its role in handling the business logic.
- For the Database, specify Microsoft SQL Server.
- Indications that Material UI is used in the frontend for styling and consistent UI components.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Frontend Section
    subgraph "Frontend (Client)"
        direction TB
        ReactApp["React Application<br/>(Uses React, Redux, Material UI)"]:::frontend
        subgraph "Authentication Components"
            Login["Login (Auth)"]:::frontend
            Register["Register (Auth)"]:::frontend
        end
        Dashboard["Dashboard Page"]:::frontend
        CreditSim["Credit Simulator"]:::frontend
        subgraph "Plan Management"
            PlanData["Plan Data"]:::frontend
            PlanCalc["Plan Calculator"]:::frontend
            PlanDocs["Plan Documents"]:::frontend
            PlanSelected["Plan Selected"]:::frontend
            PlanTerms["Plan Terms"]:::frontend
            PlanSended["Plan Sended"]:::frontend
        end
        Redux["Redux (State Management)"]:::frontend
        Router["Routing (Client Navigation)"]:::frontend
    end

    %% Backend Section
    subgraph "Backend"
        direction TB
        DotNetAPI[".NET API Service<br/>(Business Logic, Authentication,<br/>Transactions, Document Management)"]:::backend
        ExtService["External Services<br/>(Payment, Identity, Analytics)"]:::backend
    end

    %% Database Section
    subgraph "Database"
        direction TB
        SQLServer["Microsoft SQL Server<br/>(Persistent Data Storage)"]:::database
    end

    %% Data Flow Connections
    ReactApp -->|"API Calls"| DotNetAPI
    Login -->|"Login Request"| DotNetAPI
    Register -->|"Registration Request"| DotNetAPI
    Dashboard -->|"Fetch Dashboard Data"| DotNetAPI
    CreditSim -->|"Simulate Credit"| DotNetAPI
    PlanData -->|"Plan Data Request"| DotNetAPI
    PlanCalc -->|"Calculation API"| DotNetAPI
    PlanDocs -->|"Document Upload"| DotNetAPI
    PlanSelected -->|"Plan Selection Update"| DotNetAPI
    PlanTerms -->|"Terms Request"| DotNetAPI
    PlanSended -->|"Plan Confirmation"| DotNetAPI
    Redux -->|"State Updates"| ReactApp
    Router -->|"Route Management"| ReactApp

    DotNetAPI -->|"Data Storage/Retrieval"| SQLServer
    DotNetAPI -->|"Integrates"| ExtService
    ExtService -->|"External Response"| DotNetAPI

    %% Click Events for Frontend Components
    click ReactApp "https://github.com/mquirico/proptech/tree/Front-End/client/src/"
    click Login "https://github.com/mquirico/proptech/tree/Front-End/client/src/pages/login/"
    click Login "https://github.com/mquirico/proptech/tree/Front-End/client/src/components/logIn-form/"
    click Register "https://github.com/mquirico/proptech/tree/Front-End/client/src/pages/register/"
    click Register "https://github.com/mquirico/proptech/tree/Front-End/client/src/components/register-form/"
    click Dashboard "https://github.com/mquirico/proptech/tree/Front-End/client/src/pages/dashboard-layout/"
    click CreditSim "https://github.com/mquirico/proptech/tree/Front-End/client/src/pages/creditSimulator/"
    click PlanData "https://github.com/mquirico/proptech/tree/Front-End/client/src/components/plan-data/"
    click PlanCalc "https://github.com/mquirico/proptech/tree/Front-End/client/src/components/plan-calculator/"
    click PlanDocs "https://github.com/mquirico/proptech/tree/Front-End/client/src/components/plan-documents/"
    click PlanSelected "https://github.com/mquirico/proptech/tree/Front-End/client/src/components/plan-selected/"
    click PlanTerms "https://github.com/mquirico/proptech/tree/Front-End/client/src/components/plan-terms/"
    click PlanSended "https://github.com/mquirico/proptech/tree/Front-End/client/src/components/plan-sended/"
    click Redux "https://github.com/mquirico/proptech/tree/Front-End/client/src/redux/"
    click Router "https://github.com/mquirico/proptech/blob/Front-End/client/src/routes/routerView.jsx"
    click DotNetAPI "https://github.com/mquirico/proptech/tree/Front-End/server/"

    %% Class Styles
    classDef frontend fill:#ADD8E6,stroke:#000,stroke-width:2px;
    classDef backend fill:#90EE90,stroke:#000,stroke-width:2px;
    classDef database fill:#D3D3D3,stroke:#000,stroke-width:2px;
```
