# brubribeiro/projeto-bytebank-grupo-30 architecture

> Architecture diagram of the GitHub repository brubribeiro/projeto-bytebank-grupo-30, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/brubribeiro/projeto-bytebank-grupo-30
- Repository: https://github.com/brubribeiro/projeto-bytebank-grupo-30

## Overview

##### Project type and purpose
- From the file tree and the presence of angular.json, src/app, server.ts, and app.module.server.ts, it’s clear this is an Angular single-page application (SPA) set up for server-side rendering (Angular Universal).
- The README title “projeto-bytebank-grupo-30” suggests it’s a banking dashboard POC: home pages, dashboards, transaction forms, balance and extract views.

##### File structure
- Top‐level files:
- angular.json, tsconfig*.json, package.json → Angular CLI configuration and dependencies
- server.ts, main.server.ts → Node entrypoints for server‐side rendering
- README.md, .github/workflows/blank.yml → CI setup in GitHub Actions
- src/app: broken out into two feature areas:
- home (header, content, footer, overall home component)
- dashboard (balance, extract, new-transaction form with sub-components, menu, header)
- src/app/app-routing.module.ts and app.module.ts / app.module.server.ts define module imports and route setup.
- src/styles.css, custom-theme.scss for theming.

##### README
- We infer technology stack: Angular 14+ (TypeScript), Angular Universal (SSR), Node.js (server.ts), GitHub Actions for CI/CD.

##### Details
- Layer: CI/CD pipeline, hosting, SSR server, SPA runtime, external API
- Drill into the Angular folder structure: feature modules and their sub-components
- Routing module as the nexus of navigation
- Which files bootstrap which part (main.ts for client, main.server.ts for server)

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "CI/CD Pipeline"
        repo["GitHub Actions CI Config"]:::ci
        build["Build & Test"]:::ci
        repo --> build
        build -->|"Deploy Artifact"| host
    end

    subgraph "Hosting Environment"
        host["Hosting Env"]:::server
        host --> SSR
    end

    subgraph "Server-Side"
        SSR["Angular Universal Node Server"]:::server
    end

    subgraph "Client Browser"
        Browser["Client Browser"]:::frontend
        Browser -->|"Bootstrap SPA"| SPA["Angular SPA Runtime"]:::frontend
        SPA --> AppShell["App Shell"]:::frontend
        AppShell --> AppRouting["AppRoutingModule"]:::frontend
        AppRouting --> HomeMod["HomeModule"]:::frontend

        subgraph HomeModule
            HomeHome["HomeComponent"]:::frontend
            HeaderHome["HeaderHome"]:::frontend
            Content["Content"]:::frontend
            Footer["Footer"]:::frontend
            HomeMod --> HomeHome
            HomeMod --> HeaderHome
            HomeMod --> Content
            HomeMod --> Footer
        end

        AppRouting --> DashboardMod["DashboardModule"]:::frontend

        subgraph DashboardModule
            Dashboard["DashboardComponent"]:::frontend
            HeaderDash["HeaderDashboard"]:::frontend
            MenuComp["Menu"]:::frontend
            Balance["Balance"]:::frontend
            Extract["Extract"]:::frontend
            NewTx["NewTransaction"]:::frontend
            InputComp["Input"]:::frontend
            Dropdown["Dropdown"]:::frontend
            ButtonComp["Button"]:::frontend
            DashboardMod --> Dashboard
            DashboardMod --> HeaderDash
            DashboardMod --> MenuComp
            DashboardMod --> Balance
            DashboardMod --> Extract
            DashboardMod --> NewTx
            NewTx --> InputComp
            NewTx --> Dropdown
            DashboardMod --> ButtonComp
        end

        SPA -->|"XHR Calls"| API["External Banking API"]:::cloud
    end

    SSR -->|"Pre-render & Serve"| Browser
    SSR -->|"Serve Static Assets"| Assets["Static Assets"]:::asset
    Assets --> Browser

    subgraph "Project Configuration"
        CLI["Angular CLI & TSConfig"]:::asset
    end

    subgraph "Project Metadata"
        README["README.md"]:::asset
        pkg["package.json"]:::asset
        lock["package-lock.json"]:::asset
    end

    click SSR "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/server.ts"
    click SSR "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/main.server.ts"
    click SSR "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/app.module.server.ts"
    click SPA "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/main.ts"
    click AppShell "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/app.component.ts"
    click AppRouting "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/app-routing.module.ts"
    click HomeHome "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/home/home.component.ts"
    click HeaderHome "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/home/header-home/header-home.component.ts"
    click Content "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/home/content/content.component.ts"
    click Footer "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/home/footer/footer.component.ts"
    click Dashboard "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/dashboard.component.ts"
    click HeaderDash "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/header-dashboard/header-dashboard.component.ts"
    click MenuComp "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/menu/menu.component.ts"
    click Balance "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/balance/balance.component.ts"
    click Extract "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/extract/extract.component.ts"
    click NewTx "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/new-transaction/new-transaction.component.ts"
    click InputComp "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/new-transaction/input/input.component.ts"
    click Dropdown "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/new-transaction/dropdown/dropdown.component.ts"
    click ButtonComp "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/app/dashboard/button/button.component.ts"
    click Assets "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/index.html"
    click Assets "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/styles.css"
    click Assets "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/src/custom-theme.scss"
    click repo "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/.github/workflows/blank.yml"
    click CLI "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/angular.json"
    click CLI "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/tsconfig.json"
    click CLI "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/tsconfig.app.json"
    click CLI "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/tsconfig.spec.json"
    click README "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/README.md"
    click pkg "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/package.json"
    click lock "https://github.com/brubribeiro/projeto-bytebank-grupo-30/blob/main/package-lock.json"

    classDef frontend fill:#E0F7FA,stroke:#036b78,stroke-width:1px
    classDef server fill:#E8F5E9,stroke:#256029,stroke-width:1px
    classDef ci fill:#FFF3E0,stroke:#b26a00,stroke-width:1px
    classDef cloud fill:#F3E5F5,stroke:#6a1b9a,stroke-width:1px
    classDef asset fill:#ECEFF1,stroke:#455a64,stroke-width:1px
```
