# maelgui/bagadmenru-v5 architecture

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

- Interactive diagram: https://gitdiagram.com/maelgui/bagadmenru-v5
- Repository: https://github.com/maelgui/bagadmenru-v5

## Overview

Bagad Men Ru is a member-management and event-coordination platform for a Breton music ensemble. Members use the React application to sign in, manage profiles and groups, coordinate events and RSVP, and manage files; the frontend calls a FastAPI backend that persists data in PostgreSQL and uses S3 for file storage. The graph retains the documented API domains and the distinct authentication, membership, and notification areas visible in the tree. Some backend feature paths are represented by their endpoint modules; unsampled endpoint internals are not inferred.

Main entry points: [`backend/bbe2/api/v1/api.py`](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/api.py) (API routing), [`frontend/app/src/config/client.ts`](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/config/client.ts) (API client setup), [`frontend/app/src/App.tsx`](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/App.tsx) (React application), [`frontend/app/src/config/router.ts`](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/config/router.ts) (Page routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["React application<br/>[App.tsx]"]
  node_routing["Page routing<br/>[router.ts]"]
  node_api_client["API client setup<br/>[client.ts]"]
  node_generated_client["Generated API client<br/>[runtime.ts]"]
  node_event_ui["Event coordination UI<br/>[planning.tsx]"]
  node_profile_ui["Member profiles UI<br/>[list.tsx]"]
  node_files_ui["File management UI<br/>[list.tsx]"]
end

subgraph group_api["Backend API"]
  node_api_router["API routing<br/>[api.py]"]
end

subgraph group_domain["Platform features"]
  node_auth["Authentication<br/>[auth.py]"]
  node_profiles["Profiles and groups<br/>[profiles.py]"]
  node_events["Events and RSVP<br/>[events.py]"]
  node_files["File endpoints<br/>[files.py]"]
  node_invitations["Invitations<br/>[invitations.py]"]
  node_membership["Membership integration<br/>[helloasso.py]"]
  node_push["Push notifications<br/>[push.py]"]
end

subgraph group_persistence["Persistence and services"]
  node_db_session["Database sessions<br/>[database.py]"]
  node_postgres[("PostgreSQL")]
  node_s3[("S3 object storage")]
  node_push_service["Push delivery service<br/>[push_service.py]"]
end

node_member(("Member"))
node_push_provider["Web push service"]

node_member -->|"uses"| node_app
node_app -->|"mounts routes"| node_routing
node_routing -->|"routes to"| node_event_ui
node_routing -->|"routes to"| node_profile_ui
node_api_client -->|"configures APIs"| node_generated_client
node_app -->|"shares query client"| node_api_client
node_app -->|"sets API base"| node_api_client
node_event_ui -.->|"uses client"| node_api_client
node_profile_ui -.->|"uses client"| node_api_client
node_files_ui -.->|"uses client"| node_api_client
node_app -->|"calls API"| node_api_router
node_api_router -->|"includes"| node_auth
node_api_router -->|"includes"| node_profiles
node_api_router -->|"includes"| node_events
node_api_router -->|"includes"| node_files
node_api_router -->|"includes"| node_invitations
node_api_router -->|"includes"| node_membership
node_api_router -->|"includes"| node_push
node_api_router -.->|"uses sessions"| node_db_session
node_db_session -->|"reads and writes"| node_postgres
node_api_router -->|"stores files"| node_s3
node_push -.->|"dispatches to"| node_push_service
node_push_service -.->|"sends notifications"| node_push_provider

click node_app "https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/App.tsx"
click node_routing "https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/config/router.ts"
click node_api_client "https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/config/client.ts"
click node_generated_client "https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/lib/src/runtime.ts"
click node_event_ui "https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/pages/events/planning.tsx"
click node_profile_ui "https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/pages/profiles/list.tsx"
click node_files_ui "https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/pages/files/list.tsx"
click node_api_router "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/api.py"
click node_auth "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/auth.py"
click node_profiles "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/profiles.py"
click node_events "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/events.py"
click node_files "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/files.py"
click node_invitations "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/invitations.py"
click node_membership "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/helloasso.py"
click node_push "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/push.py"
click node_db_session "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/database.py"
click node_push_service "https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/services/push_service.py"

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_routing,node_api_client,node_generated_client,node_event_ui,node_profile_ui,node_files_ui toneBlue
class node_api_router toneAmber
class node_auth,node_profiles,node_events,node_files,node_invitations,node_membership,node_push toneMint
class node_db_session,node_postgres,node_s3,node_push_service toneRose
class node_member,node_push_provider toneIndigo
```

## Components

### Web application

- [React application](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/App.tsx): `frontend/app/src/App.tsx`
- [Page routing](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/config/router.ts): `frontend/app/src/config/router.ts`
- [API client setup](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/config/client.ts): `frontend/app/src/config/client.ts`
- [Generated API client](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/lib/src/runtime.ts): `frontend/lib/src/runtime.ts`
- [Event coordination UI](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/pages/events/planning.tsx): `frontend/app/src/pages/events/planning.tsx`
- [Member profiles UI](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/pages/profiles/list.tsx): `frontend/app/src/pages/profiles/list.tsx`
- [File management UI](https://github.com/maelgui/bagadmenru-v5/blob/main/frontend/app/src/pages/files/list.tsx): `frontend/app/src/pages/files/list.tsx`

### Backend API

- [API routing](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/api.py): `backend/bbe2/api/v1/api.py`

### Platform features

- [Authentication](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/auth.py): `backend/bbe2/api/v1/endpoints/auth.py`
- [Profiles and groups](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/profiles.py): `backend/bbe2/api/v1/endpoints/profiles.py`
- [Events and RSVP](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/events.py): `backend/bbe2/api/v1/endpoints/events.py`
- [File endpoints](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/files.py): `backend/bbe2/api/v1/endpoints/files.py`
- [Invitations](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/invitations.py): `backend/bbe2/api/v1/endpoints/invitations.py`
- [Membership integration](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/helloasso.py): `backend/bbe2/api/v1/endpoints/helloasso.py`
- [Push notifications](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/api/v1/endpoints/push.py): `backend/bbe2/api/v1/endpoints/push.py`

### Persistence and services

- [Database sessions](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/database.py): `backend/bbe2/database.py`
- **PostgreSQL**
- **S3 object storage**
- [Push delivery service](https://github.com/maelgui/bagadmenru-v5/blob/main/backend/bbe2/services/push_service.py): `backend/bbe2/services/push_service.py`

### Other components

- **Member**
- **Web push service**

## Connections

- Member → React application: uses (evidence: `README.md`)
- React application → Page routing: mounts routes (evidence: `frontend/app/src/App.tsx`)
- Page routing → Event coordination UI: routes to (evidence: `frontend/app/src/config/router.ts`)
- Page routing → Member profiles UI: routes to (evidence: `frontend/app/src/config/router.ts`)
- API client setup → Generated API client: configures APIs (evidence: `frontend/app/src/config/client.ts`)
- React application → API client setup: shares query client (evidence: `frontend/app/src/App.tsx`)
- React application → API client setup: sets API base (evidence: `frontend/app/src/App.tsx`)
- Event coordination UI → API client setup: uses client
- Member profiles UI → API client setup: uses client
- File management UI → API client setup: uses client
- React application → API routing: calls API (evidence: `README.md`)
- API routing → Authentication: includes (evidence: `backend/bbe2/api/v1/api.py`)
- API routing → Profiles and groups: includes (evidence: `backend/bbe2/api/v1/api.py`)
- API routing → Events and RSVP: includes (evidence: `backend/bbe2/api/v1/api.py`)
- API routing → File endpoints: includes (evidence: `backend/bbe2/api/v1/api.py`)
- API routing → Invitations: includes (evidence: `backend/bbe2/api/v1/api.py`)
- API routing → Membership integration: includes (evidence: `backend/bbe2/api/v1/api.py`)
- API routing → Push notifications: includes (evidence: `backend/bbe2/api/v1/api.py`)
- API routing → Database sessions: uses sessions
- Database sessions → PostgreSQL: reads and writes (evidence: `README.md`)
- API routing → S3 object storage: stores files (evidence: `README.md`)
- Push notifications → Push delivery service: dispatches to
- Push delivery service → Web push service: sends notifications
