# rickyrodio93/gestionale architecture

> Architecture diagram of the GitHub repository rickyrodio93/gestionale, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rickyrodio93/gestionale
- Repository: https://github.com/rickyrodio93/gestionale

## Overview

Gestionale Appartamenti is a personal property-portfolio manager for apartment units, rental income, expenses, investments, and booking calendars. The main workflow is to maintain property and rental records, record cash movements, and review dashboard summaries, tax estimates, and upcoming deadlines. The graph preserves the documented product areas and the sampled business-calculation layer. Several routes and integrations are unsampled; their links are included only where the README or SOURCE INDEX supports them.

Main entry points: [`src/app/page.jsx`](https://github.com/rickyrodio93/gestionale/blob/main/src/app/page.jsx) (Portfolio dashboard), [`src/app/spese/page.jsx`](https://github.com/rickyrodio93/gestionale/blob/main/src/app/spese/page.jsx) (Expense tracking), [`src/app/entrate/contratti/[id]/page.jsx`](https://github.com/rickyrodio93/gestionale/blob/main/src/app/entrate/contratti/%5Bid%5D/page.jsx) (Rental contracts), [`src/lib/dashboard.js`](https://github.com/rickyrodio93/gestionale/blob/main/src/lib/dashboard.js) (Cash movements)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Property portfolio"]
  node_units["Apartments<br/>[page.jsx]"]
  node_valuation["Property valuation<br/>[page.jsx]"]
end

subgraph group_rentals["Rental operations"]
  node_rental_records["Rental contracts<br/>[page.jsx]"]
  node_tenants["Tenant reports<br/>[page.jsx]"]
  node_income["Income tracking<br/>[page.jsx]"]
end

subgraph group_finance["Finance and reporting"]
  node_expenses["Expense tracking<br/>[page.jsx]"]
  node_utility_bills["Utility bills<br/>[page.jsx]"]
  node_recurring_expenses["Recurring expenses<br/>[page.jsx]"]
  node_investments["Investment portfolio<br/>[page.jsx]"]
  node_financing["Financing<br/>[page.jsx]"]
  node_sales["Installment sales<br/>[page.jsx]"]
  node_dashboard["Portfolio dashboard<br/>[page.jsx]"]
  node_movement_loader["Cash movements<br/>[dashboard.js]"]
  node_yield_calculation["Yield calculations<br/>[rendimento.js]"]
  node_tax_estimation["Rental tax estimates<br/>[cedolare.js]"]
end

subgraph group_calendar["Calendar"]
  node_booking_calendar["Booking calendar<br/>[page.jsx]"]
  node_calendar_events["Calendar events<br/>[eventi.js]"]
  node_ical_sync["iCal sync<br/>[sincronizzaIcal.js]"]
end

subgraph group_data["Persistence"]
  node_database[("SQLite database")]
end

node_owner(("Property manager"))

node_owner -->|"manages"| node_units
node_owner -->|"manages"| node_rental_records
node_owner -->|"tracks"| node_income
node_owner -->|"reviews"| node_booking_calendar
node_owner -->|"tracks"| node_expenses
node_owner -->|"reviews"| node_investments
node_units -->|"reads"| node_database
node_rental_records -->|"reads"| node_database
node_rental_records -->|"links to"| node_tenants
node_income -->|"reads"| node_database
node_booking_calendar -->|"loads"| node_calendar_events
node_booking_calendar -->|"invokes"| node_ical_sync
node_calendar_events -->|"reads"| node_database
node_expenses -->|"reads"| node_database
node_expenses -->|"synchronizes"| node_recurring_expenses
node_expenses -->|"calculates"| node_tax_estimation
node_utility_bills -->|"reads"| node_database
node_recurring_expenses -->|"reads"| node_database
node_investments -->|"calculates"| node_yield_calculation
node_valuation -->|"reads"| node_database
node_financing -->|"reads"| node_database
node_sales -->|"reads"| node_database
node_dashboard -->|"loads"| node_movement_loader
node_dashboard -->|"estimates"| node_tax_estimation
node_dashboard -->|"reads"| node_database
node_dashboard -.->|"charts yields"| node_yield_calculation
node_movement_loader -->|"reads"| node_database
node_movement_loader -->|"synchronizes"| node_recurring_expenses
node_calendar_events -->|"uses tax plan"| node_tax_estimation

click node_units "https://github.com/rickyrodio93/gestionale/blob/main/src/app/appartamenti/page.jsx"
click node_valuation "https://github.com/rickyrodio93/gestionale/blob/main/src/app/investimenti/valutazione/page.jsx"
click node_rental_records "https://github.com/rickyrodio93/gestionale/blob/main/src/app/entrate/contratti/%5Bid%5D/page.jsx"
click node_tenants "https://github.com/rickyrodio93/gestionale/blob/main/src/app/entrate/inquilini/%5Bid%5D/page.jsx"
click node_income "https://github.com/rickyrodio93/gestionale/blob/main/src/app/entrate/page.jsx"
click node_booking_calendar "https://github.com/rickyrodio93/gestionale/blob/main/src/app/calendario/page.jsx"
click node_calendar_events "https://github.com/rickyrodio93/gestionale/blob/main/src/lib/eventi.js"
click node_ical_sync "https://github.com/rickyrodio93/gestionale/blob/main/src/lib/sincronizzaIcal.js"
click node_expenses "https://github.com/rickyrodio93/gestionale/blob/main/src/app/spese/page.jsx"
click node_utility_bills "https://github.com/rickyrodio93/gestionale/blob/main/src/app/spese/bollette/page.jsx"
click node_recurring_expenses "https://github.com/rickyrodio93/gestionale/blob/main/src/app/spese/ricorrenti/page.jsx"
click node_investments "https://github.com/rickyrodio93/gestionale/blob/main/src/app/investimenti/page.jsx"
click node_financing "https://github.com/rickyrodio93/gestionale/blob/main/src/app/investimenti/finanziamenti/page.jsx"
click node_sales "https://github.com/rickyrodio93/gestionale/blob/main/src/app/investimenti/vendite/%5Bid%5D/page.jsx"
click node_dashboard "https://github.com/rickyrodio93/gestionale/blob/main/src/app/page.jsx"
click node_movement_loader "https://github.com/rickyrodio93/gestionale/blob/main/src/lib/dashboard.js"
click node_yield_calculation "https://github.com/rickyrodio93/gestionale/blob/main/src/lib/rendimento.js"
click node_tax_estimation "https://github.com/rickyrodio93/gestionale/blob/main/src/lib/cedolare.js"

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_units,node_valuation toneBlue
class node_rental_records,node_tenants,node_income toneAmber
class node_expenses,node_utility_bills,node_recurring_expenses,node_investments,node_financing,node_sales,node_dashboard,node_movement_loader,node_yield_calculation,node_tax_estimation toneMint
class node_booking_calendar,node_calendar_events,node_ical_sync toneRose
class node_database,node_owner toneIndigo
```

## Components

### Property portfolio

- [Apartments](https://github.com/rickyrodio93/gestionale/blob/main/src/app/appartamenti/page.jsx): `src/app/appartamenti/page.jsx`
- [Property valuation](https://github.com/rickyrodio93/gestionale/blob/main/src/app/investimenti/valutazione/page.jsx): `src/app/investimenti/valutazione/page.jsx`

### Rental operations

- [Rental contracts](https://github.com/rickyrodio93/gestionale/blob/main/src/app/entrate/contratti/%5Bid%5D/page.jsx): `src/app/entrate/contratti/[id]/page.jsx`
- [Tenant reports](https://github.com/rickyrodio93/gestionale/blob/main/src/app/entrate/inquilini/%5Bid%5D/page.jsx): `src/app/entrate/inquilini/[id]/page.jsx`
- [Income tracking](https://github.com/rickyrodio93/gestionale/blob/main/src/app/entrate/page.jsx): `src/app/entrate/page.jsx`

### Finance and reporting

- [Expense tracking](https://github.com/rickyrodio93/gestionale/blob/main/src/app/spese/page.jsx): `src/app/spese/page.jsx`
- [Utility bills](https://github.com/rickyrodio93/gestionale/blob/main/src/app/spese/bollette/page.jsx): `src/app/spese/bollette/page.jsx`
- [Recurring expenses](https://github.com/rickyrodio93/gestionale/blob/main/src/app/spese/ricorrenti/page.jsx): `src/app/spese/ricorrenti/page.jsx`
- [Investment portfolio](https://github.com/rickyrodio93/gestionale/blob/main/src/app/investimenti/page.jsx): `src/app/investimenti/page.jsx`
- [Financing](https://github.com/rickyrodio93/gestionale/blob/main/src/app/investimenti/finanziamenti/page.jsx): `src/app/investimenti/finanziamenti/page.jsx`
- [Installment sales](https://github.com/rickyrodio93/gestionale/blob/main/src/app/investimenti/vendite/%5Bid%5D/page.jsx): `src/app/investimenti/vendite/[id]/page.jsx`
- [Portfolio dashboard](https://github.com/rickyrodio93/gestionale/blob/main/src/app/page.jsx): `src/app/page.jsx`
- [Cash movements](https://github.com/rickyrodio93/gestionale/blob/main/src/lib/dashboard.js): `src/lib/dashboard.js`
- [Yield calculations](https://github.com/rickyrodio93/gestionale/blob/main/src/lib/rendimento.js): `src/lib/rendimento.js`
- [Rental tax estimates](https://github.com/rickyrodio93/gestionale/blob/main/src/lib/cedolare.js): `src/lib/cedolare.js`

### Calendar

- [Booking calendar](https://github.com/rickyrodio93/gestionale/blob/main/src/app/calendario/page.jsx): `src/app/calendario/page.jsx`
- [Calendar events](https://github.com/rickyrodio93/gestionale/blob/main/src/lib/eventi.js): `src/lib/eventi.js`
- [iCal sync](https://github.com/rickyrodio93/gestionale/blob/main/src/lib/sincronizzaIcal.js): `src/lib/sincronizzaIcal.js`

### Persistence

- **SQLite database**

### Other components

- **Property manager**

## Connections

- Property manager → Apartments: manages
- Property manager → Rental contracts: manages
- Property manager → Income tracking: tracks
- Property manager → Booking calendar: reviews
- Property manager → Expense tracking: tracks
- Property manager → Investment portfolio: reviews
- Apartments → SQLite database: reads (evidence: `src/app/appartamenti/page.jsx`)
- Rental contracts → SQLite database: reads (evidence: `src/app/entrate/contratti/[id]/page.jsx`)
- Rental contracts → Tenant reports: links to (evidence: `src/app/entrate/contratti/[id]/page.jsx`)
- Income tracking → SQLite database: reads (evidence: `src/app/entrate/page.jsx`)
- Booking calendar → Calendar events: loads (evidence: `src/app/calendario/page.jsx`)
- Booking calendar → iCal sync: invokes (evidence: `src/app/calendario/page.jsx`)
- Calendar events → SQLite database: reads (evidence: `src/lib/eventi.js`)
- Expense tracking → SQLite database: reads (evidence: `src/app/spese/page.jsx`)
- Expense tracking → Recurring expenses: synchronizes (evidence: `src/app/spese/page.jsx`)
- Expense tracking → Rental tax estimates: calculates (evidence: `src/app/spese/page.jsx`)
- Utility bills → SQLite database: reads (evidence: `src/app/spese/bollette/page.jsx`)
- Recurring expenses → SQLite database: reads (evidence: `src/app/spese/ricorrenti/page.jsx`)
- Investment portfolio → Yield calculations: calculates (evidence: `src/app/investimenti/page.jsx`)
- Property valuation → SQLite database: reads (evidence: `src/app/investimenti/valutazione/page.jsx`)
- Financing → SQLite database: reads (evidence: `src/app/investimenti/finanziamenti/page.jsx`)
- Installment sales → SQLite database: reads (evidence: `src/app/investimenti/vendite/[id]/page.jsx`)
- Portfolio dashboard → Cash movements: loads (evidence: `src/app/page.jsx`)
- Portfolio dashboard → Rental tax estimates: estimates (evidence: `src/app/page.jsx`)
- Portfolio dashboard → SQLite database: reads (evidence: `src/app/page.jsx`)
- Portfolio dashboard → Yield calculations: charts yields (evidence: `src/app/page.jsx`)
- Cash movements → SQLite database: reads (evidence: `src/lib/dashboard.js`)
- Cash movements → Recurring expenses: synchronizes (evidence: `src/lib/dashboard.js`)
- Calendar events → Rental tax estimates: uses tax plan (evidence: `src/lib/eventi.js`)
