# tukeloletsebe/ubuntuconnect architecture

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

- Interactive diagram: https://gitdiagram.com/tukeloletsebe/ubuntuconnect
- Repository: https://github.com/tukeloletsebe/ubuntuconnect

## Overview

UbuntuConnect is a social-impact platform for individuals, NPOs, businesses, and administrators. Users register and verify identity, then discover organizations and participate through fundraising, donations, volunteering, partnerships, and community content; dashboards expose impact and reports. The React client routes users to role-specific experiences and calls an ASP.NET API backed by EF Core. The README documents major capabilities, while sampled source confirms registration persistence, individual workflow dependencies, routing, and configurable services. Some domain controller and frontend-service links are documented at a high level rather than verified from their implementations.

Main entry points: [`backend/UbuntuConnectAPI/Program.cs`](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Program.cs) (API application), [`backend/UbuntuConnectAPI/Data/AppDbContext.cs`](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Data/AppDbContext.cs) (Platform database), [`backend/UbuntuConnectAPI/Controllers/IndividualController.cs`](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/IndividualController.cs) (Individual workflows), [`backend/UbuntuConnectAPI/Controllers/AuthController.cs`](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/AuthController.cs) (Registration and login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_routes["Role-based routes<br/>[routes.tsx]"]
  node_dashboards["Role dashboards"]
  node_clientservices["Domain API services"]
  node_apiclient["HTTP API client<br/>[api.ts]"]
end

subgraph group_identity["Identity and verification"]
  node_auth["Registration and login<br/>[AuthController.cs]"]
  node_individual["Individual workflows"]
  node_verification["KYC review and gates"]
  node_face["Face verification"]
  node_email["Email verification"]
end

subgraph group_community["Community and participation"]
  node_organization["NPO and business profiles<br/>[NPOController.cs]"]
  node_social["Posts and community feed<br/>[FeedController.cs]"]
  node_volunteering["Volunteer programs"]
end

subgraph group_impact["Funding and impact"]
  node_fundraisers["Projects and fundraisers"]
  node_campaigns["CSR partnerships"]
  node_transactions["Donations and wallets"]
  node_payments["Simulated card payments"]
  node_reports["Impact reports"]
end

subgraph group_platform["API and infrastructure"]
  node_database[("Platform database<br/>[AppDbContext.cs]")]
  node_uploads["Image and document storage"]
  node_notifications["In-app notifications"]
  node_backend["API application<br/>[Program.cs]"]
end

node_participants(("Platform participants"))

node_participants -->|"use"| node_routes
node_routes -->|"routes to"| node_dashboards
node_dashboards -.->|"request data"| node_clientservices
node_clientservices -->|"wraps"| node_apiclient
node_apiclient -.->|"calls API"| node_backend
node_participants -->|"register or sign in"| node_auth
node_auth -->|"creates accounts"| node_database
node_auth -.->|"verify email"| node_email
node_participants -->|"discover and participate"| node_individual
node_individual -->|"reads and writes"| node_database
node_individual -.->|"submit identity"| node_verification
node_individual -->|"requests face match"| node_face
node_participants -->|"browse organizations"| node_organization
node_organization -.->|"reads and writes"| node_database
node_participants -->|"view community posts"| node_social
node_participants -->|"apply and log hours"| node_volunteering
node_participants -->|"browse projects"| node_fundraisers
node_participants -->|"form partnerships"| node_campaigns
node_participants -->|"donate and withdraw"| node_transactions
node_transactions -.->|"simulate card payment"| node_payments
node_individual -->|"process donation"| node_payments
node_participants -->|"view impact reports"| node_reports
node_fundraisers -.->|"persists projects"| node_database
node_campaigns -.->|"persists campaigns"| node_database
node_transactions -.->|"persists transactions"| node_database
node_backend -->|"configures persistence"| node_database
node_backend -->|"registers storage"| node_uploads
node_backend -->|"registers service"| node_notifications
node_backend -->|"selects provider"| node_face
node_backend -->|"registers gateway"| node_payments

click node_routes "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/frontend/src/app/routes.tsx"
click node_dashboards "https://github.com/tukeloletsebe/ubuntuconnect/tree/v7/frontend/src/app/components"
click node_clientservices "https://github.com/tukeloletsebe/ubuntuconnect/tree/v7/frontend/src/services"
click node_apiclient "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/frontend/src/lib/api.ts"
click node_auth "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/AuthController.cs"
click node_individual "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/IndividualController.cs"
click node_verification "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/VerificationController.cs"
click node_face "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/FaceVerification/FaceOnnxVerificationService.cs"
click node_email "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/Email/EmailVerificationTokenService.cs"
click node_organization "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/NPOController.cs"
click node_social "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/FeedController.cs"
click node_volunteering "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/VolunteerApplicationController.cs"
click node_fundraisers "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/ProjectController.cs"
click node_campaigns "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/CampaignController.cs"
click node_transactions "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/TransactionController.cs"
click node_payments "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/Payments/PaymentSimulationService.cs"
click node_reports "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/ReportController.cs"
click node_database "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Data/AppDbContext.cs"
click node_uploads "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/Storage/LocalFileStorageService.cs"
click node_notifications "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/Notifications/NotificationService.cs"
click node_backend "https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Program.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_dashboards,node_clientservices,node_apiclient toneBlue
class node_auth,node_individual,node_verification,node_face,node_email toneAmber
class node_organization,node_social,node_volunteering toneMint
class node_fundraisers,node_campaigns,node_transactions,node_payments,node_reports toneRose
class node_database,node_uploads,node_notifications,node_backend,node_participants toneIndigo
```

## Components

### Web client

- [Role-based routes](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/frontend/src/app/routes.tsx): `frontend/src/app/routes.tsx`
- [Role dashboards](https://github.com/tukeloletsebe/ubuntuconnect/tree/v7/frontend/src/app/components): `frontend/src/app/components`
- [Domain API services](https://github.com/tukeloletsebe/ubuntuconnect/tree/v7/frontend/src/services): `frontend/src/services`
- [HTTP API client](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/frontend/src/lib/api.ts): `frontend/src/lib/api.ts`

### Identity and verification

- [Registration and login](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/AuthController.cs): `backend/UbuntuConnectAPI/Controllers/AuthController.cs`
- [Individual workflows](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/IndividualController.cs): `backend/UbuntuConnectAPI/Controllers/IndividualController.cs`
- [KYC review and gates](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/VerificationController.cs): `backend/UbuntuConnectAPI/Controllers/VerificationController.cs`
- [Face verification](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/FaceVerification/FaceOnnxVerificationService.cs): `backend/UbuntuConnectAPI/Services/FaceVerification/FaceOnnxVerificationService.cs`
- [Email verification](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/Email/EmailVerificationTokenService.cs): `backend/UbuntuConnectAPI/Services/Email/EmailVerificationTokenService.cs`

### Community and participation

- [NPO and business profiles](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/NPOController.cs): `backend/UbuntuConnectAPI/Controllers/NPOController.cs`
- [Posts and community feed](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/FeedController.cs): `backend/UbuntuConnectAPI/Controllers/FeedController.cs`
- [Volunteer programs](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/VolunteerApplicationController.cs): `backend/UbuntuConnectAPI/Controllers/VolunteerApplicationController.cs`

### Funding and impact

- [Projects and fundraisers](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/ProjectController.cs): `backend/UbuntuConnectAPI/Controllers/ProjectController.cs`
- [CSR partnerships](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/CampaignController.cs): `backend/UbuntuConnectAPI/Controllers/CampaignController.cs`
- [Donations and wallets](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/TransactionController.cs): `backend/UbuntuConnectAPI/Controllers/TransactionController.cs`
- [Simulated card payments](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/Payments/PaymentSimulationService.cs): `backend/UbuntuConnectAPI/Services/Payments/PaymentSimulationService.cs`
- [Impact reports](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Controllers/ReportController.cs): `backend/UbuntuConnectAPI/Controllers/ReportController.cs`

### API and infrastructure

- [Platform database](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Data/AppDbContext.cs): `backend/UbuntuConnectAPI/Data/AppDbContext.cs`
- [Image and document storage](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/Storage/LocalFileStorageService.cs): `backend/UbuntuConnectAPI/Services/Storage/LocalFileStorageService.cs`
- [In-app notifications](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Services/Notifications/NotificationService.cs): `backend/UbuntuConnectAPI/Services/Notifications/NotificationService.cs`
- [API application](https://github.com/tukeloletsebe/ubuntuconnect/blob/v7/backend/UbuntuConnectAPI/Program.cs): `backend/UbuntuConnectAPI/Program.cs`

### Other components

- **Platform participants**

## Connections

- Platform participants → Role-based routes: use (evidence: `frontend/src/app/routes.tsx`)
- Role-based routes → Role dashboards: routes to (evidence: `frontend/src/app/routes.tsx`)
- Role dashboards → Domain API services: request data
- Domain API services → HTTP API client: wraps (evidence: `frontend/src/services/authService.ts`)
- HTTP API client → API application: calls API
- Platform participants → Registration and login: register or sign in
- Registration and login → Platform database: creates accounts
- Registration and login → Email verification: verify email
- Platform participants → Individual workflows: discover and participate
- Individual workflows → Platform database: reads and writes (evidence: `backend/UbuntuConnectAPI/Controllers/IndividualController.cs`)
- Individual workflows → KYC review and gates: submit identity
- Individual workflows → Face verification: requests face match (evidence: `backend/UbuntuConnectAPI/Controllers/IndividualController.cs`)
- Platform participants → NPO and business profiles: browse organizations
- NPO and business profiles → Platform database: reads and writes (evidence: `backend/UbuntuConnectAPI/Controllers/NPOController.cs`)
- Platform participants → Posts and community feed: view community posts
- Platform participants → Volunteer programs: apply and log hours
- Platform participants → Projects and fundraisers: browse projects
- Platform participants → CSR partnerships: form partnerships
- Platform participants → Donations and wallets: donate and withdraw
- Donations and wallets → Simulated card payments: simulate card payment
- Individual workflows → Simulated card payments: process donation (evidence: `backend/UbuntuConnectAPI/Controllers/IndividualController.cs`)
- Platform participants → Impact reports: view impact reports
- Projects and fundraisers → Platform database: persists projects
- CSR partnerships → Platform database: persists campaigns
- Donations and wallets → Platform database: persists transactions
- API application → Platform database: configures persistence (evidence: `backend/UbuntuConnectAPI/Program.cs`)
- API application → Image and document storage: registers storage (evidence: `backend/UbuntuConnectAPI/Program.cs`)
- API application → In-app notifications: registers service (evidence: `backend/UbuntuConnectAPI/Program.cs`)
- API application → Face verification: selects provider (evidence: `backend/UbuntuConnectAPI/Program.cs`)
- API application → Simulated card payments: registers gateway (evidence: `backend/UbuntuConnectAPI/Program.cs`)
