# sujeitoprogramador/alugue-app architecture

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

- Interactive diagram: https://gitdiagram.com/sujeitoprogramador/alugue-app
- Repository: https://github.com/sujeitoprogramador/alugue-app

## Overview

Alugue is a small Expo/React Native rental-browsing app. Its main flow opens a home catalog with search input and three curated listing sections; selecting a new listing navigates to a detail screen with a photo swiper, rating, price, description, and thumbnails. The shown implementation uses hard-coded sample content and local images; no search, booking, or backend behavior is evidenced. The README offers only a project overview, so capability coverage is based on the sampled screens and components.

Main entry points: [`src/pages/Home.js`](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/pages/Home.js) (Home Catalog), [`src/router.js`](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/router.js) (Stack Routes), [`src/pages/Detail.js`](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/pages/Detail.js) (Listing Detail), [`App.js`](https://github.com/sujeitoprogramador/alugue-app/blob/master/App.js) (App Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App Navigation"]
  node_app["App Shell<br/>[App.js]"]
  node_routes["Stack Routes<br/>[router.js]"]
end

subgraph group_catalog["Home Catalog"]
  node_home["Home Catalog<br/>[Home.js]"]
  node_new["New Listings<br/>[New.js]"]
  node_nearby["Nearby Homes<br/>[House.js]"]
  node_recommendations["Daily Deals<br/>[Recommended.js]"]
end

subgraph group_listing["Listing Detail"]
  node_detail["Listing Detail<br/>[Detail.js]"]
  node_gallery["Photo Swiper<br/>[Swiper.js]"]
end

node_visitor(("Renter"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_routes
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_detail
node_home -->|"renders"| node_new
node_home -->|"renders"| node_nearby
node_home -->|"renders"| node_recommendations
node_home -->|"navigates to"| node_detail
node_detail -->|"renders"| node_gallery

click node_app "https://github.com/sujeitoprogramador/alugue-app/blob/master/App.js"
click node_routes "https://github.com/sujeitoprogramador/alugue-app/blob/master/src/router.js"
click node_home "https://github.com/sujeitoprogramador/alugue-app/blob/master/src/pages/Home.js"
click node_new "https://github.com/sujeitoprogramador/alugue-app/blob/master/src/components/New.js"
click node_nearby "https://github.com/sujeitoprogramador/alugue-app/blob/master/src/components/House.js"
click node_recommendations "https://github.com/sujeitoprogramador/alugue-app/blob/master/src/components/Recommended.js"
click node_detail "https://github.com/sujeitoprogramador/alugue-app/blob/master/src/pages/Detail.js"
click node_gallery "https://github.com/sujeitoprogramador/alugue-app/blob/master/src/components/Swiper.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_app,node_routes toneBlue
class node_home,node_new,node_nearby,node_recommendations toneAmber
class node_detail,node_gallery toneMint
class node_visitor toneIndigo
```

## Components

### App Navigation

- [App Shell](https://github.com/sujeitoprogramador/alugue-app/blob/master/App.js): `App.js`
- [Stack Routes](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/router.js): `src/router.js`

### Home Catalog

- [Home Catalog](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/pages/Home.js): `src/pages/Home.js`
- [New Listings](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/components/New.js): `src/components/New.js`
- [Nearby Homes](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/components/House.js): `src/components/House.js`
- [Daily Deals](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/components/Recommended.js): `src/components/Recommended.js`

### Listing Detail

- [Listing Detail](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/pages/Detail.js): `src/pages/Detail.js`
- [Photo Swiper](https://github.com/sujeitoprogramador/alugue-app/blob/master/src/components/Swiper.js): `src/components/Swiper.js`

### Other components

- **Renter**

## Connections

- Renter → App Shell: opens (evidence: `README.md`)
- App Shell → Stack Routes: renders (evidence: `App.js`)
- Stack Routes → Home Catalog: routes to (evidence: `src/router.js`)
- Stack Routes → Listing Detail: routes to (evidence: `src/router.js`)
- Home Catalog → New Listings: renders (evidence: `src/pages/Home.js`)
- Home Catalog → Nearby Homes: renders (evidence: `src/pages/Home.js`)
- Home Catalog → Daily Deals: renders (evidence: `src/pages/Home.js`)
- Home Catalog → Listing Detail: navigates to (evidence: `src/pages/Home.js`)
- Listing Detail → Photo Swiper: renders (evidence: `src/pages/Detail.js`)
