# nkodombejeanyves/expatriate365 architecture

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

- Interactive diagram: https://gitdiagram.com/nkodombejeanyves/expatriate365
- Repository: https://github.com/nkodombejeanyves/expatriate365

## Overview

Expatriate365 is a multi-tenant web platform for expatriate associations. Members and staff use the Angular client to manage membership, finances and contributions, events, meetings, governance, communications, and community features; requests are handled by the ASP.NET Core API and persisted in MySQL. The graph groups the client’s principal workflow and major capability areas, the API’s domain endpoints and application logic, and shared persistence and security. Some feature-to-API wiring is not excerpted, so those links are marked unverified rather than inferred as direct calls.

Main entry points: [`client/src/app/app.routes.ts`](https://github.com/nkodombejeanyves/expatriate365/blob/develop/client/src/app/app.routes.ts) (Application routes), [`server/API`](https://github.com/nkodombejeanyves/expatriate365/tree/develop/server/API) (HTTP domain endpoints), [`server/Infrastructure/Persistence/AppDbContext.cs`](https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Infrastructure/Persistence/AppDbContext.cs) (MySQL data context), [`server/Application`](https://github.com/nkodombejeanyves/expatriate365/tree/develop/server/Application) (Domain application logic)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_routes["Application routes<br/>[app.routes.ts]"]
  node_auth["Sign-in and tenant access<br/>[auth.service.ts]"]
  node_membership["Member directory"]
  node_contributions["Contributions and payments"]
  node_finance["Finance and analytics"]
  node_events["Events and meetings"]
  node_governance["Elections and governance"]
  node_community["Community and showcases"]
  node_communications["Communications and documents"]
  node_assistance["Welfare and transfer aid"]
  node_admin["Administration"]
end

subgraph group_api["API and domain"]
  node_api["HTTP domain endpoints"]
  node_application["Domain application logic"]
  node_authapi["Authentication endpoints<br/>[AuthEndpoints.cs]"]
end

subgraph group_shared["Persistence and security"]
  node_membersdata["Membership records<br/>[Member.cs]"]
  node_finance_data["Contribution records"]
  node_database[("MySQL data context<br/>[AppDbContext.cs]")]
  node_permissions["Permission authorization"]
end

node_user(("Members and staff"))

node_user -->|"uses"| node_routes
node_routes -->|"guards access"| node_auth
node_routes -->|"routes to"| node_membership
node_routes -->|"routes to"| node_contributions
node_routes -->|"routes to"| node_finance
node_routes -->|"routes to"| node_events
node_routes -->|"routes to"| node_governance
node_routes -->|"routes to"| node_community
node_routes -->|"routes to"| node_communications
node_routes -->|"routes to"| node_assistance
node_routes -->|"routes to"| node_admin
node_user -.->|"submits requests"| node_api
node_api -->|"maps endpoints"| node_authapi
node_authapi -->|"dispatches auth"| node_application
node_api -.->|"dispatches domain work"| node_application
node_application -->|"reads and writes"| node_database
node_database -->|"maps records"| node_membersdata
node_database -->|"maps records"| node_finance_data
node_api -.->|"authorizes access"| node_permissions

click node_routes "https://github.com/nkodombejeanyves/expatriate365/blob/develop/client/src/app/app.routes.ts"
click node_auth "https://github.com/nkodombejeanyves/expatriate365/blob/develop/client/src/app/core/auth/auth.service.ts"
click node_membership "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/members"
click node_contributions "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/contributions"
click node_finance "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/finances"
click node_events "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/events"
click node_governance "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/elections"
click node_community "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/community"
click node_communications "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/communications"
click node_assistance "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/transfer-assistance"
click node_admin "https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/admin"
click node_api "https://github.com/nkodombejeanyves/expatriate365/tree/develop/server/API"
click node_application "https://github.com/nkodombejeanyves/expatriate365/tree/develop/server/Application"
click node_authapi "https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/API/Auth/AuthEndpoints.cs"
click node_membersdata "https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Domain/Entities/Member.cs"
click node_finance_data "https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Domain/Entities/ContributionCharge.cs"
click node_database "https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Infrastructure/Persistence/AppDbContext.cs"
click node_permissions "https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Infrastructure/Auth/PermissionAuthorizationHandler.cs"

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_routes,node_auth,node_membership,node_contributions,node_finance,node_events,node_governance,node_community,node_communications,node_assistance,node_admin toneBlue
class node_api,node_application,node_authapi toneAmber
class node_membersdata,node_finance_data,node_database,node_permissions toneMint
class node_user toneIndigo
```

## Components

### Web client

- [Application routes](https://github.com/nkodombejeanyves/expatriate365/blob/develop/client/src/app/app.routes.ts): `client/src/app/app.routes.ts`
- [Sign-in and tenant access](https://github.com/nkodombejeanyves/expatriate365/blob/develop/client/src/app/core/auth/auth.service.ts): `client/src/app/core/auth/auth.service.ts`
- [Member directory](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/members): `client/src/app/features/members`
- [Contributions and payments](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/contributions): `client/src/app/features/contributions`
- [Finance and analytics](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/finances): `client/src/app/features/finances`
- [Events and meetings](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/events): `client/src/app/features/events`
- [Elections and governance](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/elections): `client/src/app/features/elections`
- [Community and showcases](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/community): `client/src/app/features/community`
- [Communications and documents](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/communications): `client/src/app/features/communications`
- [Welfare and transfer aid](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/transfer-assistance): `client/src/app/features/transfer-assistance`
- [Administration](https://github.com/nkodombejeanyves/expatriate365/tree/develop/client/src/app/features/admin): `client/src/app/features/admin`

### API and domain

- [HTTP domain endpoints](https://github.com/nkodombejeanyves/expatriate365/tree/develop/server/API): `server/API`
- [Domain application logic](https://github.com/nkodombejeanyves/expatriate365/tree/develop/server/Application): `server/Application`
- [Authentication endpoints](https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/API/Auth/AuthEndpoints.cs): `server/API/Auth/AuthEndpoints.cs`

### Persistence and security

- [Membership records](https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Domain/Entities/Member.cs): `server/Domain/Entities/Member.cs`
- [Contribution records](https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Domain/Entities/ContributionCharge.cs): `server/Domain/Entities/ContributionCharge.cs`
- [MySQL data context](https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Infrastructure/Persistence/AppDbContext.cs): `server/Infrastructure/Persistence/AppDbContext.cs`
- [Permission authorization](https://github.com/nkodombejeanyves/expatriate365/blob/develop/server/Infrastructure/Auth/PermissionAuthorizationHandler.cs): `server/Infrastructure/Auth/PermissionAuthorizationHandler.cs`

### Other components

- **Members and staff**

## Connections

- Members and staff → Application routes: uses (evidence: `client/src/app/app.routes.ts`)
- Application routes → Sign-in and tenant access: guards access (evidence: `client/src/app/app.routes.ts`)
- Application routes → Member directory: routes to (evidence: `client/src/app/app.routes.ts`)
- Application routes → Contributions and payments: routes to (evidence: `client/src/app/app.routes.ts`)
- Application routes → Finance and analytics: routes to (evidence: `client/src/app/app.routes.ts`)
- Application routes → Events and meetings: routes to (evidence: `client/src/app/app.routes.ts`)
- Application routes → Elections and governance: routes to (evidence: `client/src/app/app.routes.ts`)
- Application routes → Community and showcases: routes to (evidence: `client/src/app/app.routes.ts`)
- Application routes → Communications and documents: routes to (evidence: `client/src/app/app.routes.ts`)
- Application routes → Welfare and transfer aid: routes to (evidence: `client/src/app/app.routes.ts`)
- Application routes → Administration: routes to (evidence: `client/src/app/app.routes.ts`)
- Members and staff → HTTP domain endpoints: submits requests (evidence: `README.md`)
- HTTP domain endpoints → Authentication endpoints: maps endpoints
- Authentication endpoints → Domain application logic: dispatches auth (evidence: `server/API/Auth/AuthEndpoints.cs`)
- HTTP domain endpoints → Domain application logic: dispatches domain work (evidence: `server/API/Auth/AuthEndpoints.cs`)
- Domain application logic → MySQL data context: reads and writes (evidence: `server/Application/Community/Queries/ListPostsQuery.cs`)
- MySQL data context → Membership records: maps records (evidence: `server/Infrastructure/Persistence/AppDbContext.cs`)
- MySQL data context → Contribution records: maps records (evidence: `server/Infrastructure/Persistence/AppDbContext.cs`)
- HTTP domain endpoints → Permission authorization: authorizes access
