# proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend architecture

> Architecture diagram of the GitHub repository proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend
- Repository: https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend

## Overview

ProptechPropiFrontend is an Angular business application for managing customers, products and tax types, invoices and invoice lines, and credit/debit notes. The main workflow is to sign in, enter the application, maintain catalogs, and create or manage invoices; invoice creation saves the header before submitting its lines. The graph reflects routes and calls visible in the excerpts and SOURCE INDEX. Backend behavior is represented only as HTTP services; backend implementation details are not present in this repository evidence.

Main entry points: [`src/app/app.routes.ts`](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/app.routes.ts) (Application routes), [`src/environments/environment.ts`](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/environments/environment.ts) (API endpoint config), [`src/app/services/productos-servicios.service.ts`](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/productos-servicios.service.ts) (Product API service), [`src/app/services/facturas.service.ts`](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/facturas.service.ts) (Invoice API service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation and access"]
  node_router["Application routes<br/>[app.routes.ts]"]
  node_login["Sign in<br/>[login.ts]"]
  node_home["Home layout<br/>[inicio.ts]"]
  node_navbar["Session navigation<br/>[navbar.ts]"]
end

subgraph group_catalogs["Customer and catalogs"]
  node_clients["Customer management<br/>[cliente.ts]"]
  node_products["Product management"]
  node_taxes["Tax management<br/>[tipo-impuesto.ts]"]
end

subgraph group_billing["Billing workflows"]
  node_invoices["Invoice management<br/>[factura.ts]"]
  node_invoice_lines["Invoice line management<br/>[factura-detalle.ts]"]
  node_credit_notes["Credit/debit notes"]
end

subgraph group_integration["API integration"]
  node_auth["Authentication service"]
  node_models["Domain models"]
  node_api_config["API endpoint config<br/>[environment.ts]"]
  node_customer_api["Customer API service"]
  node_product_api["Product API service"]
  node_tax_api["Tax API service"]
  node_invoice_api["Invoice API service"]
  node_line_api["Invoice line API"]
  node_notes_api["Credit/debit API"]
end

node_user(("User"))
node_backend{{"Proptech API"}}

node_user -->|"navigates"| node_router
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_clients
node_router -->|"routes to"| node_invoices
node_router -->|"routes to"| node_invoice_lines
node_router -->|"routes to"| node_products
node_router -->|"routes to"| node_taxes
node_router -->|"routes to"| node_credit_notes
node_login -->|"authenticates via"| node_auth
node_navbar -->|"uses session"| node_auth
node_home -->|"uses"| node_navbar
node_clients -->|"loads and updates"| node_customer_api
node_products -->|"loads and updates"| node_product_api
node_products -->|"loads tax types"| node_tax_api
node_taxes -->|"loads and updates"| node_tax_api
node_invoices -->|"loads and saves"| node_invoice_api
node_invoices -->|"submits invoice lines"| node_line_api
node_invoices -->|"loads customers"| node_customer_api
node_invoices -->|"loads products"| node_product_api
node_invoice_lines -->|"uses invoice data"| node_invoice_api
node_invoice_lines -->|"loads and updates"| node_line_api
node_invoice_lines -->|"uses product data"| node_product_api
node_credit_notes -->|"uses invoice data"| node_invoice_api
node_credit_notes -->|"loads and updates"| node_notes_api
node_auth -->|"sends auth requests"| node_backend
node_customer_api -->|"sends customer requests"| node_backend
node_product_api -->|"sends product requests"| node_backend
node_tax_api -->|"sends tax requests"| node_backend
node_invoice_api -->|"sends invoice requests"| node_backend
node_line_api -->|"sends line requests"| node_backend
node_notes_api -->|"sends note requests"| node_backend
node_auth -->|"uses endpoint"| node_api_config
node_customer_api -->|"uses endpoint"| node_api_config
node_product_api -->|"uses endpoint"| node_api_config
node_tax_api -->|"uses endpoint"| node_api_config
node_invoice_api -->|"uses endpoint"| node_api_config
node_line_api -->|"uses endpoint"| node_api_config
node_notes_api -->|"uses endpoint"| node_api_config
node_customer_api -->|"uses customer types"| node_models
node_product_api -->|"uses product types"| node_models
node_tax_api -->|"uses tax types"| node_models
node_invoice_api -->|"uses invoice types"| node_models
node_line_api -->|"uses line types"| node_models
node_notes_api -->|"uses note types"| node_models

click node_router "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/app.routes.ts"
click node_login "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/login/login/login.ts"
click node_auth "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/authservice.service.ts"
click node_home "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/inicio/inicio.ts"
click node_navbar "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/login/navbar/navbar.ts"
click node_clients "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/cliente/cliente.ts"
click node_products "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/producto-servicio/producto-servicio.ts"
click node_taxes "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/tipo-impuesto/tipo-impuesto.ts"
click node_invoices "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/factura/factura.ts"
click node_invoice_lines "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/factura-detalle/factura-detalle.ts"
click node_credit_notes "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/nota-credito-debito/nota-credito-debito.ts"
click node_models "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/tree/main/src/app/models"
click node_api_config "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/environments/environment.ts"
click node_customer_api "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/clientes.service.ts"
click node_product_api "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/productos-servicios.service.ts"
click node_tax_api "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/tipos-impuesto.service.ts"
click node_invoice_api "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/facturas.service.ts"
click node_line_api "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/facturas-detalle.service.ts"
click node_notes_api "https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/notas-credito-debito.service.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_router,node_login,node_home,node_navbar,node_user toneBlue
class node_clients,node_products,node_taxes toneAmber
class node_invoices,node_invoice_lines,node_credit_notes,node_backend toneMint
class node_auth,node_models,node_api_config,node_customer_api,node_product_api,node_tax_api,node_invoice_api,node_line_api,node_notes_api toneRose
```

## Components

### Navigation and access

- [Application routes](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Sign in](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/login/login/login.ts): `src/app/login/login/login.ts`
- [Home layout](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/inicio/inicio.ts): `src/app/layout/inicio/inicio.ts`
- [Session navigation](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/login/navbar/navbar.ts): `src/app/login/navbar/navbar.ts`

### Customer and catalogs

- [Customer management](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/cliente/cliente.ts): `src/app/layout/cliente/cliente.ts`
- [Product management](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/producto-servicio/producto-servicio.ts): `src/app/layout/producto-servicio/producto-servicio.ts`
- [Tax management](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/tipo-impuesto/tipo-impuesto.ts): `src/app/layout/tipo-impuesto/tipo-impuesto.ts`

### Billing workflows

- [Invoice management](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/factura/factura.ts): `src/app/layout/factura/factura.ts`
- [Invoice line management](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/factura-detalle/factura-detalle.ts): `src/app/layout/factura-detalle/factura-detalle.ts`
- [Credit/debit notes](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/layout/nota-credito-debito/nota-credito-debito.ts): `src/app/layout/nota-credito-debito/nota-credito-debito.ts`

### API integration

- [Authentication service](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/authservice.service.ts): `src/app/services/authservice.service.ts`
- [Domain models](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/tree/main/src/app/models): `src/app/models`
- [API endpoint config](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/environments/environment.ts): `src/environments/environment.ts`
- [Customer API service](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/clientes.service.ts): `src/app/services/clientes.service.ts`
- [Product API service](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/productos-servicios.service.ts): `src/app/services/productos-servicios.service.ts`
- [Tax API service](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/tipos-impuesto.service.ts): `src/app/services/tipos-impuesto.service.ts`
- [Invoice API service](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/facturas.service.ts): `src/app/services/facturas.service.ts`
- [Invoice line API](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/facturas-detalle.service.ts): `src/app/services/facturas-detalle.service.ts`
- [Credit/debit API](https://github.com/proptech-propi-proyecto-bases-datos-2/proptech-propi-frontend/blob/main/src/app/services/notas-credito-debito.service.ts): `src/app/services/notas-credito-debito.service.ts`

### Other components

- **User**
- **Proptech API**

## Connections

- User → Application routes: navigates (evidence: `src/app/app.routes.ts`)
- Application routes → Sign in: routes to (evidence: `src/app/app.routes.ts`)
- Application routes → Home layout: routes to (evidence: `src/app/app.routes.ts`)
- Application routes → Customer management: routes to (evidence: `src/app/app.routes.ts`)
- Application routes → Invoice management: routes to (evidence: `src/app/app.routes.ts`)
- Application routes → Invoice line management: routes to (evidence: `src/app/app.routes.ts`)
- Application routes → Product management: routes to (evidence: `src/app/app.routes.ts`)
- Application routes → Tax management: routes to (evidence: `src/app/app.routes.ts`)
- Application routes → Credit/debit notes: routes to (evidence: `src/app/app.routes.ts`)
- Sign in → Authentication service: authenticates via (evidence: `src/app/login/login/login.ts`)
- Session navigation → Authentication service: uses session (evidence: `src/app/login/navbar/navbar.ts`)
- Home layout → Session navigation: uses (evidence: `src/app/layout/inicio/inicio.ts`)
- Customer management → Customer API service: loads and updates (evidence: `src/app/layout/cliente/cliente.ts`)
- Product management → Product API service: loads and updates (evidence: `src/app/layout/producto-servicio/producto-servicio.ts`)
- Product management → Tax API service: loads tax types (evidence: `src/app/layout/producto-servicio/producto-servicio.ts`)
- Tax management → Tax API service: loads and updates (evidence: `src/app/layout/tipo-impuesto/tipo-impuesto.ts`)
- Invoice management → Invoice API service: loads and saves (evidence: `src/app/layout/factura/factura.ts`)
- Invoice management → Invoice line API: submits invoice lines (evidence: `src/app/layout/factura/factura.ts`)
- Invoice management → Customer API service: loads customers (evidence: `src/app/layout/factura/factura.ts`)
- Invoice management → Product API service: loads products (evidence: `src/app/layout/factura/factura.ts`)
- Invoice line management → Invoice API service: uses invoice data (evidence: `src/app/layout/factura-detalle/factura-detalle.ts`)
- Invoice line management → Invoice line API: loads and updates (evidence: `src/app/layout/factura-detalle/factura-detalle.ts`)
- Invoice line management → Product API service: uses product data (evidence: `src/app/layout/factura-detalle/factura-detalle.ts`)
- Credit/debit notes → Invoice API service: uses invoice data (evidence: `src/app/layout/nota-credito-debito/nota-credito-debito.ts`)
- Credit/debit notes → Credit/debit API: loads and updates (evidence: `src/app/layout/nota-credito-debito/nota-credito-debito.ts`)
- Authentication service → Proptech API: sends auth requests (evidence: `src/app/services/authservice.service.ts`)
- Customer API service → Proptech API: sends customer requests (evidence: `src/app/services/clientes.service.ts`)
- Product API service → Proptech API: sends product requests (evidence: `src/app/services/productos-servicios.service.ts`)
- Tax API service → Proptech API: sends tax requests (evidence: `src/app/services/tipos-impuesto.service.ts`)
- Invoice API service → Proptech API: sends invoice requests (evidence: `src/app/services/facturas.service.ts`)
- Invoice line API → Proptech API: sends line requests (evidence: `src/app/services/facturas-detalle.service.ts`)
- Credit/debit API → Proptech API: sends note requests (evidence: `src/app/services/notas-credito-debito.service.ts`)
- Authentication service → API endpoint config: uses endpoint (evidence: `src/app/services/authservice.service.ts`)
- Customer API service → API endpoint config: uses endpoint (evidence: `src/app/services/clientes.service.ts`)
- Product API service → API endpoint config: uses endpoint (evidence: `src/app/services/productos-servicios.service.ts`)
- Tax API service → API endpoint config: uses endpoint (evidence: `src/app/services/tipos-impuesto.service.ts`)
- Invoice API service → API endpoint config: uses endpoint (evidence: `src/app/services/facturas.service.ts`)
- Invoice line API → API endpoint config: uses endpoint (evidence: `src/app/services/facturas-detalle.service.ts`)
- Credit/debit API → API endpoint config: uses endpoint (evidence: `src/app/services/notas-credito-debito.service.ts`)
- Customer API service → Domain models: uses customer types (evidence: `src/app/services/clientes.service.ts`)
- Product API service → Domain models: uses product types (evidence: `src/app/services/productos-servicios.service.ts`)
- Tax API service → Domain models: uses tax types (evidence: `src/app/services/tipos-impuesto.service.ts`)
- Invoice API service → Domain models: uses invoice types (evidence: `src/app/services/facturas.service.ts`)
- Invoice line API → Domain models: uses line types (evidence: `src/app/services/facturas-detalle.service.ts`)
- Credit/debit API → Domain models: uses note types (evidence: `src/app/services/notas-credito-debito.service.ts`)
