# angelalop03/tripeas-app architecture

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

- Interactive diagram: https://gitdiagram.com/angelalop03/tripeas-app
- Repository: https://github.com/angelalop03/tripeas-app

## Overview

TripEAs is an Expo mobile app for coordinating group trips. The main workflow is to sign in, view or create a trip, then manage its itinerary, expenses, participants and shared materials. Trip detail also surfaces participant, calendar and settlement information. The app uses a shared HTTP client and locally persisted authentication state. Some route and component connections are supported only by the source index; those uncertain links are omitted or marked dashed rather than treated as verified calls.

Main entry points: [`constants/Api.ts`](https://github.com/angelalop03/tripeas-app/blob/main/constants/Api.ts) (HTTP API client), [`hooks/useAuth.tsx`](https://github.com/angelalop03/tripeas-app/blob/main/hooks/useAuth.tsx) (Auth session), [`components/CrearViajeModal.tsx`](https://github.com/angelalop03/tripeas-app/blob/main/components/CrearViajeModal.tsx) (Create trip), [`app/login.tsx`](https://github.com/angelalop03/tripeas-app/blob/main/app/login.tsx) (Sign in and signup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and profile"]
  node_authscreens["Sign in and signup<br/>[login.tsx]"]
  node_profile["Profile settings<br/>[ajustes-perfil.tsx]"]
  node_help["Help<br/>[ayuda.tsx]"]
end

subgraph group_trip["Trip management"]
  node_triplist["My trips<br/>[index.tsx]"]
  node_create["Create trip"]
  node_join["Join trip"]
  node_overview["Trip overview<br/>[index.tsx]"]
  node_settings["Trip settings<br/>[ajustes.tsx]"]
end

subgraph group_features["Trip features"]
  node_participants["Participants<br/>[participantes.tsx]"]
  node_calendar["Trip calendar<br/>[calendario.tsx]"]
  node_activityform["Create activity"]
  node_expenses["Expenses<br/>[gastos.tsx]"]
  node_expenseform["Add expense"]
  node_accounts["Trip accounts<br/>[cuentas.tsx]"]
  node_roulette["Group roulette<br/>[elegir.tsx]"]
  node_lists["Shared lists<br/>[listas.tsx]"]
  node_listform["Create list"]
  node_album["Trip album<br/>[album.tsx]"]
  node_documents["Trip documents<br/>[docs.tsx]"]
end

subgraph group_shared["Shared infrastructure"]
  node_api["HTTP API client<br/>[Api.ts]"]
  node_session["Auth session<br/>[useAuth.tsx]"]
  node_storage[("AsyncStorage")]
end

node_traveler(("Traveler"))
node_backend["TripEAs backend"]

node_traveler -->|"signs in"| node_authscreens
node_authscreens -->|"requests auth"| node_api
node_authscreens -.->|"updates session"| node_session
node_profile -->|"loads profile"| node_api
node_profile -.->|"updates user"| node_session
node_triplist -->|"loads trips"| node_api
node_triplist -->|"refreshes profile"| node_session
node_create -->|"creates trip"| node_api
node_create -->|"uploads cover"| node_api
node_create -->|"adds companions"| node_api
node_join -->|"joins trip"| node_api
node_overview -->|"loads trip data"| node_api
node_settings -->|"loads and edits"| node_api
node_participants -->|"requests participants"| node_api
node_calendar -->|"requests calendar"| node_api
node_calendar -->|"uses form"| node_activityform
node_expenses -->|"requests expenses"| node_api
node_expenses -->|"uses form"| node_expenseform
node_expenseform -->|"records expense"| node_api
node_accounts -.->|"requests accounts"| node_api
node_roulette -.->|"loads choices"| node_api
node_lists -->|"requests lists"| node_api
node_lists -->|"uses form"| node_listform
node_listform -->|"creates list"| node_api
node_album -->|"requests album"| node_api
node_documents -->|"requests documents"| node_api
node_api -->|"sends HTTP"| node_backend
node_api -->|"reads token"| node_session
node_session -->|"persists session"| node_storage

click node_authscreens "https://github.com/angelalop03/tripeas-app/blob/main/app/login.tsx"
click node_profile "https://github.com/angelalop03/tripeas-app/blob/main/app/ajustes-perfil.tsx"
click node_help "https://github.com/angelalop03/tripeas-app/blob/main/app/ayuda.tsx"
click node_triplist "https://github.com/angelalop03/tripeas-app/blob/main/app/(tabs)/index.tsx"
click node_create "https://github.com/angelalop03/tripeas-app/blob/main/components/CrearViajeModal.tsx"
click node_join "https://github.com/angelalop03/tripeas-app/blob/main/components/UnirseViajeModal.tsx"
click node_overview "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/%5Bid%5D/index.tsx"
click node_settings "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/ajustes.tsx"
click node_participants "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/participantes.tsx"
click node_calendar "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/%5Bid%5D/calendario.tsx"
click node_activityform "https://github.com/angelalop03/tripeas-app/blob/main/components/CrearActividadModal.tsx"
click node_expenses "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/%5Bid%5D/gastos.tsx"
click node_expenseform "https://github.com/angelalop03/tripeas-app/blob/main/components/AnadirGastoModal.tsx"
click node_accounts "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/cuentas.tsx"
click node_roulette "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/%5Bid%5D/elegir.tsx"
click node_lists "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/listas.tsx"
click node_listform "https://github.com/angelalop03/tripeas-app/blob/main/components/CrearListaModal.tsx"
click node_album "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/album.tsx"
click node_documents "https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/docs.tsx"
click node_api "https://github.com/angelalop03/tripeas-app/blob/main/constants/Api.ts"
click node_session "https://github.com/angelalop03/tripeas-app/blob/main/hooks/useAuth.tsx"

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_authscreens,node_profile,node_help toneBlue
class node_triplist,node_create,node_join,node_overview,node_settings toneAmber
class node_participants,node_calendar,node_activityform,node_expenses,node_expenseform,node_accounts,node_roulette,node_lists,node_listform,node_album,node_documents toneMint
class node_api,node_session,node_storage toneRose
class node_traveler,node_backend toneIndigo
```

## Components

### Access and profile

- [Sign in and signup](https://github.com/angelalop03/tripeas-app/blob/main/app/login.tsx): `app/login.tsx`
- [Profile settings](https://github.com/angelalop03/tripeas-app/blob/main/app/ajustes-perfil.tsx): `app/ajustes-perfil.tsx`
- [Help](https://github.com/angelalop03/tripeas-app/blob/main/app/ayuda.tsx): `app/ayuda.tsx`

### Trip management

- [My trips](https://github.com/angelalop03/tripeas-app/blob/main/app/(tabs)/index.tsx): `app/(tabs)/index.tsx`
- [Create trip](https://github.com/angelalop03/tripeas-app/blob/main/components/CrearViajeModal.tsx): `components/CrearViajeModal.tsx`
- [Join trip](https://github.com/angelalop03/tripeas-app/blob/main/components/UnirseViajeModal.tsx): `components/UnirseViajeModal.tsx`
- [Trip overview](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/%5Bid%5D/index.tsx): `app/viaje/[id]/index.tsx`
- [Trip settings](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/ajustes.tsx): `app/viaje/ajustes.tsx`

### Trip features

- [Participants](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/participantes.tsx): `app/viaje/participantes.tsx`
- [Trip calendar](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/%5Bid%5D/calendario.tsx): `app/viaje/[id]/calendario.tsx`
- [Create activity](https://github.com/angelalop03/tripeas-app/blob/main/components/CrearActividadModal.tsx): `components/CrearActividadModal.tsx`
- [Expenses](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/%5Bid%5D/gastos.tsx): `app/viaje/[id]/gastos.tsx`
- [Add expense](https://github.com/angelalop03/tripeas-app/blob/main/components/AnadirGastoModal.tsx): `components/AnadirGastoModal.tsx`
- [Trip accounts](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/cuentas.tsx): `app/viaje/cuentas.tsx`
- [Group roulette](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/%5Bid%5D/elegir.tsx): `app/viaje/[id]/elegir.tsx`
- [Shared lists](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/listas.tsx): `app/viaje/listas.tsx`
- [Create list](https://github.com/angelalop03/tripeas-app/blob/main/components/CrearListaModal.tsx): `components/CrearListaModal.tsx`
- [Trip album](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/album.tsx): `app/viaje/album.tsx`
- [Trip documents](https://github.com/angelalop03/tripeas-app/blob/main/app/viaje/docs.tsx): `app/viaje/docs.tsx`

### Shared infrastructure

- [HTTP API client](https://github.com/angelalop03/tripeas-app/blob/main/constants/Api.ts): `constants/Api.ts`
- [Auth session](https://github.com/angelalop03/tripeas-app/blob/main/hooks/useAuth.tsx): `hooks/useAuth.tsx`
- **AsyncStorage**

### Other components

- **Traveler**
- **TripEAs backend**

## Connections

- Traveler → Sign in and signup: signs in
- Sign in and signup → HTTP API client: requests auth (evidence: `app/login.tsx`)
- Sign in and signup → Auth session: updates session (evidence: `app/login.tsx`)
- Profile settings → HTTP API client: loads profile (evidence: `app/ajustes-perfil.tsx`)
- Profile settings → Auth session: updates user (evidence: `app/ajustes-perfil.tsx`)
- My trips → HTTP API client: loads trips (evidence: `app/(tabs)/index.tsx`)
- My trips → Auth session: refreshes profile (evidence: `app/(tabs)/index.tsx`)
- Create trip → HTTP API client: creates trip (evidence: `components/CrearViajeModal.tsx`)
- Create trip → HTTP API client: uploads cover (evidence: `components/CrearViajeModal.tsx`)
- Create trip → HTTP API client: adds companions (evidence: `components/CrearViajeModal.tsx`)
- Join trip → HTTP API client: joins trip (evidence: `components/UnirseViajeModal.tsx`)
- Trip overview → HTTP API client: loads trip data (evidence: `app/viaje/[id]/index.tsx`)
- Trip settings → HTTP API client: loads and edits (evidence: `app/viaje/ajustes.tsx`)
- Participants → HTTP API client: requests participants (evidence: `app/viaje/participantes.tsx`)
- Trip calendar → HTTP API client: requests calendar (evidence: `app/viaje/[id]/calendario.tsx`)
- Trip calendar → Create activity: uses form (evidence: `app/viaje/[id]/calendario.tsx`)
- Expenses → HTTP API client: requests expenses (evidence: `app/viaje/[id]/gastos.tsx`)
- Expenses → Add expense: uses form (evidence: `app/viaje/[id]/gastos.tsx`)
- Add expense → HTTP API client: records expense (evidence: `components/AnadirGastoModal.tsx`)
- Trip accounts → HTTP API client: requests accounts
- Group roulette → HTTP API client: loads choices (evidence: `app/viaje/[id]/elegir.tsx`)
- Shared lists → HTTP API client: requests lists (evidence: `app/viaje/listas.tsx`)
- Shared lists → Create list: uses form (evidence: `app/viaje/listas.tsx`)
- Create list → HTTP API client: creates list (evidence: `components/CrearListaModal.tsx`)
- Trip album → HTTP API client: requests album (evidence: `app/viaje/album.tsx`)
- Trip documents → HTTP API client: requests documents (evidence: `app/viaje/docs.tsx`)
- HTTP API client → TripEAs backend: sends HTTP (evidence: `constants/Api.ts`)
- HTTP API client → Auth session: reads token (evidence: `constants/Api.ts`)
- Auth session → AsyncStorage: persists session (evidence: `hooks/useAuth.tsx`)
