# noumsmam/app-mobile architecture

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

- Interactive diagram: https://gitdiagram.com/noumsmam/app-mobile
- Repository: https://github.com/noumsmam/app-mobile

## Overview

Flash is a minimal Ionic/Vue client that displays a greeting fetched from a small in-memory HTTP API. The user opens the home screen, which loads the view, requests `/api/hello`, validates the JSON response, and presents either the message or a retryable error. The source shows this one endpoint and no persistence; other product capabilities are not evident. The Vite proxy target differs from the API's documented default port, so deployment routing is not asserted here.

Main entry points: [`frontend/src/main.ts`](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/main.ts) (App bootstrap), [`frontend/src/router/index.ts`](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/router/index.ts) (Home router), [`frontend/src/App.vue`](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/App.vue) (App shell), [`frontend/src/views/HelloView.vue`](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/views/HelloView.vue) (Greeting screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Mobile client"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_app_shell["App shell<br/>[App.vue]"]
  node_router["Home router<br/>[index.ts]"]
  node_hello_view["Greeting screen<br/>[HelloView.vue]"]
  node_api_client["API client<br/>[api.ts]"]
end

subgraph group_backend["Greeting API"]
  node_server["HTTP server and routes<br/>[server.js]"]
end

node_user(("User"))

node_user -->|"opens app"| node_bootstrap
node_bootstrap -->|"mounts"| node_app_shell
node_bootstrap -->|"installs"| node_router
node_app_shell -->|"renders outlet"| node_router
node_router -->|"routes home"| node_hello_view
node_hello_view -->|"requests greeting"| node_api_client
node_api_client -.->|"GET /api/hello"| node_server

click node_bootstrap "https://github.com/noumsmam/app-mobile/blob/main/frontend/src/main.ts"
click node_app_shell "https://github.com/noumsmam/app-mobile/blob/main/frontend/src/App.vue"
click node_router "https://github.com/noumsmam/app-mobile/blob/main/frontend/src/router/index.ts"
click node_hello_view "https://github.com/noumsmam/app-mobile/blob/main/frontend/src/views/HelloView.vue"
click node_api_client "https://github.com/noumsmam/app-mobile/blob/main/frontend/src/services/api.ts"
click node_server "https://github.com/noumsmam/app-mobile/blob/main/backend/server.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_bootstrap,node_app_shell,node_router,node_hello_view,node_api_client,node_user toneBlue
class node_server toneAmber
```

## Components

### Mobile client

- [App bootstrap](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/main.ts): `frontend/src/main.ts`
- [App shell](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/App.vue): `frontend/src/App.vue`
- [Home router](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/router/index.ts): `frontend/src/router/index.ts`
- [Greeting screen](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/views/HelloView.vue): `frontend/src/views/HelloView.vue`
- [API client](https://github.com/noumsmam/app-mobile/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`

### Greeting API

- [HTTP server and routes](https://github.com/noumsmam/app-mobile/blob/main/backend/server.js): `backend/server.js`

### Other components

- **User**

## Connections

- User → App bootstrap: opens app
- App bootstrap → App shell: mounts (evidence: `frontend/src/main.ts`)
- App bootstrap → Home router: installs (evidence: `frontend/src/main.ts`)
- App shell → Home router: renders outlet (evidence: `frontend/src/App.vue`)
- Home router → Greeting screen: routes home (evidence: `frontend/src/router/index.ts`)
- Greeting screen → API client: requests greeting (evidence: `frontend/src/views/HelloView.vue`)
- API client → HTTP server and routes: GET /api/hello
