feat: WebSocket temps réel + Finance Workflow + corrections
- Task #6: WebSocket /ws/dashboard + Kafka events (5 topics) * Backend: KafkaEventProducer, KafkaEventConsumer * Mobile: WebSocketService (reconnection, heartbeat, typed events) * DashboardBloc: Auto-refresh depuis WebSocket events - Finance Workflow: approbations + budgets (backend + mobile) * Backend: entities, services, resources, migrations Flyway V6 * Mobile: features finance_workflow complète avec BLoC - Corrections DI: interfaces IRepository partout * IProfileRepository, IOrganizationRepository, IMembreRepository * GetIt configuré avec @injectable - Spec-Kit: constitution + templates mis à jour * .specify/memory/constitution.md enrichie * Templates agent, plan, spec, tasks, checklist - Nettoyage: fichiers temporaires supprimés Signed-off-by: lions dev Team
This commit is contained in:
105
unionflow/INSTRUCTIONS_DEMARRAGE_RAPIDE.md
Normal file
105
unionflow/INSTRUCTIONS_DEMARRAGE_RAPIDE.md
Normal file
@@ -0,0 +1,105 @@
|
||||
# 🚀 Finance Workflow - Démarrage Rapide
|
||||
|
||||
## Option 1 : Script Automatisé (RECOMMANDÉ)
|
||||
|
||||
### Étapes
|
||||
|
||||
1. **Ouvrir PowerShell EN TANT QU'ADMINISTRATEUR**
|
||||
- Clic droit sur le menu Démarrer
|
||||
- "Terminal (Admin)" ou "Windows PowerShell (Admin)"
|
||||
|
||||
2. **Naviguer vers le projet**
|
||||
```powershell
|
||||
cd C:\Users\dadyo\PersonalProjects\lions-workspace\unionflow\unionflow-server-impl-quarkus
|
||||
```
|
||||
|
||||
3. **Exécuter le script**
|
||||
```powershell
|
||||
.\START_AND_TEST_FINANCE_WORKFLOW.ps1
|
||||
```
|
||||
|
||||
Le script va :
|
||||
- ✅ Arrêter les processus Java
|
||||
- ✅ Vérifier PostgreSQL
|
||||
- ✅ Compiler le projet
|
||||
- ✅ Démarrer Quarkus
|
||||
- ✅ Capturer les logs
|
||||
|
||||
---
|
||||
|
||||
## Option 2 : Manuelle
|
||||
|
||||
### Étape 1 : Tuer les processus Java
|
||||
|
||||
**Via Gestionnaire des tâches (le plus simple) :**
|
||||
1. Ouvrir : `Ctrl + Shift + Esc`
|
||||
2. Onglet "Détails"
|
||||
3. Chercher tous les `java.exe`
|
||||
4. Clic droit → "Fin de tâche" sur chacun
|
||||
|
||||
**OU via PowerShell Admin :**
|
||||
```powershell
|
||||
Get-Process java | Stop-Process -Force
|
||||
```
|
||||
|
||||
### Étape 2 : Démarrer Quarkus
|
||||
|
||||
```powershell
|
||||
cd C:\Users\dadyo\PersonalProjects\lions-workspace\unionflow\unionflow-server-impl-quarkus
|
||||
mvn clean compile quarkus:dev -D"quarkus.http.port=8085"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ✅ Vérifications
|
||||
|
||||
### 1. Migration Flyway V6
|
||||
|
||||
Cherchez dans les logs :
|
||||
```
|
||||
✅ Successfully applied 6 migrations to schema "public", now at version v6
|
||||
```
|
||||
|
||||
### 2. Démarrage réussi
|
||||
|
||||
```
|
||||
✅ started in X.XXXs. Listening on: http://0.0.0.0:8085
|
||||
```
|
||||
|
||||
### 3. Swagger UI
|
||||
|
||||
**Ouvrir :** http://localhost:8085/q/swagger-ui
|
||||
|
||||
**Vérifier :**
|
||||
- ✅ `approval-resource` (6 endpoints)
|
||||
- ✅ `budget-resource` (4 endpoints)
|
||||
|
||||
---
|
||||
|
||||
## 📋 Checklist complète
|
||||
|
||||
Voir : `FINANCE_WORKFLOW_TEST_CHECKLIST.md`
|
||||
|
||||
---
|
||||
|
||||
## 🆘 Problèmes ?
|
||||
|
||||
| Erreur | Solution |
|
||||
|--------|----------|
|
||||
| Processus Java "Accès refusé" | PowerShell en Admin OU Gestionnaire des tâches |
|
||||
| Port 8085 occupé | `netstat -ano \| findstr :8085` puis `taskkill /PID <PID> /F` |
|
||||
| PostgreSQL non connecté | `docker-compose up -d postgres` |
|
||||
| Tables déjà existantes | Normal si déjà exécuté, vérifier version = 6 |
|
||||
|
||||
---
|
||||
|
||||
## 📊 Progression P0
|
||||
|
||||
- [x] Backend implémenté ✅
|
||||
- [x] Migration V6 créée ✅
|
||||
- [x] Documentation complète ✅
|
||||
- [ ] Migration testée en runtime ⏳ **← VOUS ÊTES ICI**
|
||||
- [ ] Endpoints testés via Swagger ⏳
|
||||
- [ ] Intégration mobile-backend ⏳
|
||||
|
||||
**Prochain objectif :** Voir la migration V6 s'exécuter avec succès !
|
||||
Reference in New Issue
Block a user