docs: restructure with README index, trim specs.md, replace Refit with Kiota
- Create docs/README.md as central navigation index with quick links - Rewrite specs.md from 1473 to 253 lines — remove all content now duplicated in dedicated files, keep only unique content (vision, architecture, domain model, features, Docker, quality) - Replace Refit with Kiota (Microsoft) in mobile-app.md: - Kiota generates API client from OpenAPI spec - IAuthenticationProvider for JWT - CI/CD regeneration step - Comparison table Kiota vs Refit - All NuGet deps updated
This commit is contained in:
1 parent
2428e0ec2a
commit
3adb44449e
3 files changed
+491
-1518
No files matched your search
@@ -0,0 +1,69 @@
|
||||
# Heimdall — Documentation
|
||||
|
||||
Bienvenue dans la documentation technique de Heimdall, plateforme de
|
||||
vidéosurveillance IA locale, multi-site, auto-hébergée.
|
||||
|
||||
---
|
||||
|
||||
## 🧭 Par où commencer
|
||||
|
||||
| Si vous cherchez... | Allez voir |
|
||||
|---|---|
|
||||
| **Vue d'ensemble** du projet | `docs/specs.md` (Vision, Architecture, Stack) |
|
||||
| **Plan d'implémentation** (23 phases) | `docs/implementation.md` |
|
||||
| **Maquettes UI Blazor** détaillées | `docs/ui-pages.md` |
|
||||
| **Application Android** (Avalonia UI) | `docs/mobile-app.md` |
|
||||
|
||||
## 🏗️ Domaines fonctionnels
|
||||
|
||||
| Domaine | Document | Contenu |
|
||||
|---|---|---|
|
||||
| **Sites & Agents** | `docs/specs.md` (§11-12) | Sites, tokens, registration, heartbeat, bootstrap |
|
||||
| **Caméras & IA** | `docs/specs.md` (§14-19) | ONVIF, Imou, FFmpeg, GPU, AI Pipeline, détection |
|
||||
| **Streaming live** | `docs/specs.md` (§13) + `docs/signalr-usage.md` | WebRTC, SIPSorcery, SFU, signaling, JS Interop |
|
||||
| **Enregistrements** | `docs/specs.md` (§20-21) + `docs/hangfire-usage.md` | MinIO/S3, rétention, stockage local |
|
||||
| **Événements** | `docs/specs.md` (§16-19) | Personnes, véhicules, plaques, notifications |
|
||||
| **Notifications** | `docs/notifications.md` | Email SMTP, Gotify, templates Markdown i18n |
|
||||
|
||||
## 🔧 Domaines techniques
|
||||
|
||||
| Domaine | Document | Contenu |
|
||||
|---|---|---|
|
||||
| **Auth & Rôles** | `docs/auth-roles.md` | Identity, JWT, permissions, UI par rôle, site-scope |
|
||||
| **Hangfire (jobs)** | `docs/hangfire-usage.md` | Central PostgreSQL, Agent InMemory, tous les jobs |
|
||||
| **SignalR (temps réel)** | `docs/signalr-usage.md` | 5 hubs, events, streaming, monitoring, notifications |
|
||||
| **Déploiement Docker** | `docs/specs.md` (§30) | Containers, GPU passthrough, docker-compose |
|
||||
|
||||
## 📐 Structure du projet
|
||||
|
||||
```
|
||||
Heimdall/
|
||||
├── src/
|
||||
│ ├── Heimdall.Domain # Entités, Value Objects, Enums
|
||||
│ ├── Heimdall.Domain.Primitives # Types de base (Entity<TId>, ValueObject)
|
||||
│ ├── Heimdall.Contracts # DTOs partagés, constantes
|
||||
│ ├── Heimdall.Application # CQRS (Command/Query/Handler)
|
||||
│ ├── Heimdall.Infrastructure # EF Core, PostgreSQL, S3, Identity
|
||||
│ ├── Heimdall.Api # API REST + SignalR Hubs
|
||||
│ ├── Heimdall.Web # Blazor Web App (MudBlazor)
|
||||
│ ├── Heimdall.Agent # Worker + SIPSorcery + FFmpeg
|
||||
│ └── Heimdall.Workers # Hangfire jobs
|
||||
├── tests/ # xUnit + Shouldly + NSubstitute
|
||||
├── docker/ # Docker Compose + Dockerfiles
|
||||
└── docs/ # Documentation (ce dossier)
|
||||
```
|
||||
|
||||
## 📋 Fichiers de documentation
|
||||
|
||||
| Fichier | Description |
|
||||
|---|---|
|
||||
| `specs.md` | Spécification complète : vision, architecture, features, déploiement |
|
||||
| `implementation.md` | Plan d'implémentation en 23 phases ordonnées |
|
||||
| `ui-pages.md` | Pages Blazor (MudBlazor) : maquettes ASCII, composants, états |
|
||||
| `mobile-app.md` | App Android (Avalonia UI) : 6 pages, WebRTC, offline, push |
|
||||
| `auth-roles.md` | Auth : 2 user types, permissions, site-scope, UI visibility |
|
||||
| `notifications.md` | Email (SMTP), Gotify, templates Markdown i18n, hangfile queue |
|
||||
| `hangfire-usage.md` | Jobs Central (PostgreSQL) + Agent (InMemory) complets |
|
||||
| `signalr-usage.md` | 5 hubs SignalR : events, streaming, monitoring, notifications, admin |
|
||||
|
||||
**Total : ~5 600 lignes de documentation**
|
||||
Reference in new issue
Block a user