# jerix777/ville-connectee-android architecture

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

- Interactive diagram: https://gitdiagram.com/jerix777/ville-connectee-android
- Repository: https://github.com/jerix777/ville-connectee-android

## Overview

Ville Connectée is a community-services portal: visitors enter through the app’s routed pages, then browse or use local listings and community features; account and jukebox workflows also support authenticated and collaborative actions. The implementation combines React pages, service modules, and Supabase access. The README identifies the project and its frontend stack but does not document product capabilities; route coverage and several subsystem relationships are therefore based on the supplied route excerpt and file tree, not unsampled implementation details.

Main entry points: [`src/app/router/routes.config.ts`](https://github.com/jerix777/ville-connectee-android/blob/main/src/app/router/routes.config.ts) (Route definitions), [`src/integrations/supabase/client.ts`](https://github.com/jerix777/ville-connectee-android/blob/main/src/integrations/supabase/client.ts) (Supabase client), [`src/main.tsx`](https://github.com/jerix777/ville-connectee-android/blob/main/src/main.tsx) (Application startup), [`src/services/jukeboxService.ts`](https://github.com/jerix777/ville-connectee-android/blob/main/src/services/jukeboxService.ts) (Jukebox service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_startup["Application startup<br/>[main.tsx]"]
  node_app_shell["App shell<br/>[App.tsx]"]
  node_routing["Route definitions<br/>[routes.config.ts]"]
  node_home["Home page<br/>[Index.tsx]"]
end

subgraph group_identity["Identity and access"]
  node_auth_ui["Account pages<br/>[index.tsx]"]
  node_auth_context["Authentication state<br/>[AuthContext.tsx]"]
  node_auth_service["Authentication service<br/>[authService.ts]"]
end

subgraph group_community["Community services"]
  node_local_services["Local listings<br/>[index.tsx]"]
  node_health["Nearby health<br/>[index.tsx]"]
  node_community_pages["Community features<br/>[index.tsx]"]
  node_news["News features<br/>[index.tsx]"]
  node_news_domain["News module<br/>[news.usecases.ts]"]
  node_village_page["Village directory<br/>[index.tsx]"]
  node_village_domain["Village module<br/>[village.entity.ts]"]
  node_service_form["Add local service"]
  node_service_api["Service listings API"]
end

subgraph group_media["Media and messaging"]
  node_messages["Messaging<br/>[index.tsx]"]
  node_jukebox["Jukebox experience<br/>[index.tsx]"]
  node_playlist_manager["Playlist management"]
  node_session_manager["Session management<br/>[SessionManager.tsx]"]
  node_jukebox_service["Jukebox service<br/>[jukeboxService.ts]"]
end

subgraph group_data["Data and infrastructure"]
  node_dependency_access["Use-case access<br/>[useDependencies.ts]"]
  node_repository_port["Repository contract<br/>[Repository.ts]"]
  node_supabase_repo["Supabase repository"]
  node_supabase_client["Supabase client<br/>[client.ts]"]
  node_supabase_service[("Supabase platform")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens app"| node_startup
node_startup -->|"renders"| node_app_shell
node_startup -.->|"initializes defaults"| node_supabase_service
node_app_shell -->|"uses routes"| node_routing
node_routing -->|"routes to"| node_home
node_routing -->|"routes to"| node_auth_ui
node_routing -->|"routes to"| node_local_services
node_routing -->|"routes to"| node_health
node_routing -->|"routes to"| node_community_pages
node_routing -->|"routes to"| node_news
node_routing -->|"routes to"| node_village_page
node_routing -->|"routes to"| node_messages
node_routing -.->|"routes to"| node_jukebox
node_auth_context -->|"calls"| node_auth_service
node_auth_service -->|"authenticates"| node_supabase_client
node_service_form -->|"submits listing"| node_service_api
node_service_api -.->|"persists listing"| node_supabase_client
node_news -.->|"uses module"| node_news_domain
node_village_page -.->|"uses domain"| node_village_domain
node_playlist_manager -->|"adds playlist"| node_jukebox_service
node_session_manager -->|"joins session"| node_jukebox_service
node_jukebox_service -->|"accesses data"| node_supabase_client
node_dependency_access -->|"exposes use cases"| node_repository_port
node_supabase_repo -->|"implements"| node_repository_port
node_supabase_repo -->|"queries"| node_supabase_client
node_supabase_client -->|"connects"| node_supabase_service

click node_startup "https://github.com/jerix777/ville-connectee-android/blob/main/src/main.tsx"
click node_app_shell "https://github.com/jerix777/ville-connectee-android/blob/main/src/app/App.tsx"
click node_routing "https://github.com/jerix777/ville-connectee-android/blob/main/src/app/router/routes.config.ts"
click node_home "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Index.tsx"
click node_auth_ui "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Auth/index.tsx"
click node_auth_context "https://github.com/jerix777/ville-connectee-android/blob/main/src/contexts/AuthContext.tsx"
click node_auth_service "https://github.com/jerix777/ville-connectee-android/blob/main/src/services/authService.ts"
click node_local_services "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Services/index.tsx"
click node_health "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/SanteProximite/index.tsx"
click node_community_pages "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Associations/index.tsx"
click node_news "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Actualites/index.tsx"
click node_news_domain "https://github.com/jerix777/ville-connectee-android/blob/main/src/modules/news/application/news.usecases.ts"
click node_village_page "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Villages/index.tsx"
click node_village_domain "https://github.com/jerix777/ville-connectee-android/blob/main/src/modules/villages/domain/village.entity.ts"
click node_messages "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Messages/index.tsx"
click node_jukebox "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Jukebox/index.tsx"
click node_playlist_manager "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Jukebox/components/PlaylistManager.tsx"
click node_session_manager "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Jukebox/components/SessionManager.tsx"
click node_jukebox_service "https://github.com/jerix777/ville-connectee-android/blob/main/src/services/jukeboxService.ts"
click node_dependency_access "https://github.com/jerix777/ville-connectee-android/blob/main/src/app/providers/useDependencies.ts"
click node_repository_port "https://github.com/jerix777/ville-connectee-android/blob/main/src/core/ports/Repository.ts"
click node_supabase_repo "https://github.com/jerix777/ville-connectee-android/blob/main/src/infrastructure/supabase/SupabaseRepository.ts"
click node_supabase_client "https://github.com/jerix777/ville-connectee-android/blob/main/src/integrations/supabase/client.ts"
click node_service_form "https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Services/AddServiceCommerceForm.tsx"
click node_service_api "https://github.com/jerix777/ville-connectee-android/blob/main/src/services/serviceCommerceService.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_startup,node_app_shell,node_routing,node_home toneBlue
class node_auth_ui,node_auth_context,node_auth_service toneAmber
class node_local_services,node_health,node_community_pages,node_news,node_news_domain,node_village_page,node_village_domain,node_service_form,node_service_api toneMint
class node_messages,node_jukebox,node_playlist_manager,node_session_manager,node_jukebox_service toneRose
class node_dependency_access,node_repository_port,node_supabase_repo,node_supabase_client,node_supabase_service,node_visitor toneIndigo
```

## Components

### App and navigation

- [Application startup](https://github.com/jerix777/ville-connectee-android/blob/main/src/main.tsx): `src/main.tsx`
- [App shell](https://github.com/jerix777/ville-connectee-android/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Route definitions](https://github.com/jerix777/ville-connectee-android/blob/main/src/app/router/routes.config.ts): `src/app/router/routes.config.ts`
- [Home page](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`

### Identity and access

- [Account pages](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Auth/index.tsx): `src/pages/Auth/index.tsx`
- [Authentication state](https://github.com/jerix777/ville-connectee-android/blob/main/src/contexts/AuthContext.tsx): `src/contexts/AuthContext.tsx`
- [Authentication service](https://github.com/jerix777/ville-connectee-android/blob/main/src/services/authService.ts): `src/services/authService.ts`

### Community services

- [Local listings](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Services/index.tsx): `src/pages/Services/index.tsx`
- [Nearby health](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/SanteProximite/index.tsx): `src/pages/SanteProximite/index.tsx`
- [Community features](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Associations/index.tsx): `src/pages/Associations/index.tsx`
- [News features](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Actualites/index.tsx): `src/pages/Actualites/index.tsx`
- [News module](https://github.com/jerix777/ville-connectee-android/blob/main/src/modules/news/application/news.usecases.ts): `src/modules/news/application/news.usecases.ts`
- [Village directory](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Villages/index.tsx): `src/pages/Villages/index.tsx`
- [Village module](https://github.com/jerix777/ville-connectee-android/blob/main/src/modules/villages/domain/village.entity.ts): `src/modules/villages/domain/village.entity.ts`
- [Add local service](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Services/AddServiceCommerceForm.tsx): `src/pages/Services/AddServiceCommerceForm.tsx`
- [Service listings API](https://github.com/jerix777/ville-connectee-android/blob/main/src/services/serviceCommerceService.ts): `src/services/serviceCommerceService.ts`

### Media and messaging

- [Messaging](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Messages/index.tsx): `src/pages/Messages/index.tsx`
- [Jukebox experience](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Jukebox/index.tsx): `src/pages/Jukebox/index.tsx`
- [Playlist management](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Jukebox/components/PlaylistManager.tsx): `src/pages/Jukebox/components/PlaylistManager.tsx`
- [Session management](https://github.com/jerix777/ville-connectee-android/blob/main/src/pages/Jukebox/components/SessionManager.tsx): `src/pages/Jukebox/components/SessionManager.tsx`
- [Jukebox service](https://github.com/jerix777/ville-connectee-android/blob/main/src/services/jukeboxService.ts): `src/services/jukeboxService.ts`

### Data and infrastructure

- [Use-case access](https://github.com/jerix777/ville-connectee-android/blob/main/src/app/providers/useDependencies.ts): `src/app/providers/useDependencies.ts`
- [Repository contract](https://github.com/jerix777/ville-connectee-android/blob/main/src/core/ports/Repository.ts): `src/core/ports/Repository.ts`
- [Supabase repository](https://github.com/jerix777/ville-connectee-android/blob/main/src/infrastructure/supabase/SupabaseRepository.ts): `src/infrastructure/supabase/SupabaseRepository.ts`
- [Supabase client](https://github.com/jerix777/ville-connectee-android/blob/main/src/integrations/supabase/client.ts): `src/integrations/supabase/client.ts`
- **Supabase platform**

### Other components

- **Visitor**

## Connections

- Visitor → Application startup: opens app
- Application startup → App shell: renders (evidence: `src/main.tsx`)
- Application startup → Supabase platform: initializes defaults
- App shell → Route definitions: uses routes (evidence: `src/app/App.tsx`)
- Route definitions → Home page: routes to (evidence: `src/app/router/routes.config.ts`)
- Route definitions → Account pages: routes to (evidence: `src/app/router/routes.config.ts`)
- Route definitions → Local listings: routes to (evidence: `src/app/router/routes.config.ts`)
- Route definitions → Nearby health: routes to (evidence: `src/app/router/routes.config.ts`)
- Route definitions → Community features: routes to (evidence: `src/app/router/routes.config.ts`)
- Route definitions → News features: routes to (evidence: `src/app/router/routes.config.ts`)
- Route definitions → Village directory: routes to (evidence: `src/app/router/routes.config.ts`)
- Route definitions → Messaging: routes to (evidence: `src/app/router/routes.config.ts`)
- Route definitions → Jukebox experience: routes to
- Authentication state → Authentication service: calls (evidence: `src/contexts/AuthContext.tsx`)
- Authentication service → Supabase client: authenticates (evidence: `src/services/authService.ts`)
- Add local service → Service listings API: submits listing (evidence: `src/pages/Services/AddServiceCommerceForm.tsx`)
- Service listings API → Supabase client: persists listing
- News features → News module: uses module
- Village directory → Village module: uses domain
- Playlist management → Jukebox service: adds playlist (evidence: `src/pages/Jukebox/components/PlaylistManager.tsx`)
- Session management → Jukebox service: joins session (evidence: `src/pages/Jukebox/components/SessionManager.tsx`)
- Jukebox service → Supabase client: accesses data (evidence: `src/services/jukeboxService.ts`)
- Use-case access → Repository contract: exposes use cases (evidence: `src/app/providers/useDependencies.ts`)
- Supabase repository → Repository contract: implements (evidence: `src/infrastructure/supabase/SupabaseRepository.ts`)
- Supabase repository → Supabase client: queries (evidence: `src/infrastructure/supabase/SupabaseRepository.ts`)
- Supabase client → Supabase platform: connects (evidence: `src/integrations/supabase/client.ts`)
