prod: UI Optimisée mise en production

- Documentation archivée et réorganisée
- Backend: Ajout tests, migrations, library service, rate limiting
- Frontend: Suppression Flutter, focus sur interface web HTML/JS
- Tailwind CSS ajouté pour le style
- Améliorations UX et corrections bugs

Generated with [Claude Code](https://claude.com/claude-code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
root
2026-01-20 09:56:39 +00:00
parent bc03225e47
commit 801e6a050b
263 changed files with 33100 additions and 23058 deletions
-161
View File
@@ -1,161 +0,0 @@
# 📱 Android APK Build
## Status
⚠️ **Nécessite Android SDK**
## Prérequis
### Installer Android SDK
#### Option 1: Android Studio (Recommandé)
```bash
# Télécharger
wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2023.1.1.28/android-studio-2023.1.1.28-linux.tar.gz
# Extraire
tar -xzf android-studio-*.tar.gz
cd android-studio/bin
# Lancer et suivre l'assistant
./studio.sh
```
#### Option 2: Command-line Tools
```bash
# Créer dossier SDK
mkdir -p ~/Android/sdk
cd ~/Android/sdk
# Télécharger command-line tools
wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip
# Extraire
unzip commandlinetools-*.zip
mkdir -p cmdline-tools/latest
mv cmdline-tools/* cmdline-tools/latest/ 2>/dev/null || true
# Configurer variables d'environnement
export ANDROID_HOME=~/Android/sdk
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
# Ajouter au ~/.bashrc
echo 'export ANDROID_HOME=~/Android/sdk' >> ~/.bashrc
echo 'export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin' >> ~/.bashrc
echo 'export PATH=$PATH:$ANDROID_HOME/platform-tools' >> ~/.bashrc
# Installer SDK
sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.0"
# Accepter les licenses
flutter doctor --android-licenses
```
## Instructions de Build
### Debug APK (Test rapide)
```bash
cd /opt/audiOhm/frontend
flutter build apk --debug
```
### Release APK (Production)
```bash
cd /opt/audiOhm/frontend
flutter build apk --release
```
### App Bundle (Play Store)
```bash
cd /opt/audiOhm/frontend
flutter build appbundle --release
```
## Output
### Debug APK
```
build/app/outputs/flutter-apk/app-debug.apk
```
### Release APK
```
build/app/outputs/flutter-apk/app-release.apk
```
### App Bundle
```
build/app/outputs/bundle/release/app-release.aab
```
## Installation
### Via ADB
```bash
# Activer le mode développeur sur l'appareil
# Connecter via USB
# Vérifier connexion
adb devices
# Installer APK
adb install build/app/outputs/flutter-apk/app-release.apk
# Ou installer debug
adb install build/app/outputs/flutter-apk/app-debug.apk
```
### Copier dans builds/
```bash
cp build/app/outputs/flutter-apk/app-release.apk /opt/audiOhm/builds/android/
```
## Configuration Android
- **Package:** `com.audiohm.audiOhm`
- **Min SDK:** 21 (Android 5.0)
- **Target SDK:** 34 (Android 14)
- **Compile SDK:** 34
- **Kotlin:** 1.9.0
- **Gradle:** 8.1.0
## Dépannage
### "No Android SDK found"
→ Installer Android SDK (voir section Prérequis)
### "License not accepted"
```bash
flutter doctor --android-licenses
```
### Gradle errors
```bash
cd /opt/audiOhm/frontend
flutter clean
flutter pub get
flutter build apk --release
```
## Informations de Signature
La configuration de signature est dans:
```
frontend/android/app/build.gradle
```
Pour la production, configurer votre propre keystore:
```gradle
android {
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
}
```
-61
View File
@@ -1,61 +0,0 @@
# 🐧 Linux Desktop Build
## Status
⚠️ **Nécessite dépendances système supplémentaires**
## Prérequis
### Dépendances système
```bash
sudo apt-get update
sudo apt-get install -y \
clang \
cmake \
ninja-build \
pkg-config \
libgtk-3-dev \
liblzma-dev \
libstdc++-12-dev \
libssl-dev
```
## Instructions de Build
```bash
cd /opt/audiOhm/frontend
flutter build linux --release
```
## Output
L'exécutable sera créé dans:
```
build/linux/x64/release/bundle/
```
## Exécution
```bash
# Option 1: Directement
./build/linux/x64/release/bundle/audiOhm
# Option 2: Copier dans /opt/audiOhm/builds/linux/
cp -r build/linux/x64/release/bundle/* /opt/audiOhm/builds/linux/
cd /opt/audiOhm/builds/linux
./audiOhm
```
## Notes
- La structure Linux desktop a été créée
- Les plugins nécessitent des dépendances système (pkg-config, etc.)
- Le binaire sera standalone (inclut Flutter runtime)
## Alternative: Mode Développement
Pour tester sans build complet:
```bash
cd /opt/audiOhm/frontend
flutter run -d linux
```
-151
View File
@@ -1,151 +0,0 @@
# 🪟 Windows Desktop Build
## Status
⚠️ **Doit être build sur Windows uniquement**
La cross-compilation Windows depuis Linux n'est pas supportée par Flutter.
## Prérequis
### Système d'exploitation
- **Windows 10** ou supérieur
- **Windows 11** recommandé
### Dépendances Windows
#### Visual Studio 2022 (Communauté gratuite)
```
Télécharger: https://visualstudio.microsoft.com/downloads/
Lors de l'installation, cocher:
- "Développement Desktop en C++"
```
#### Flutter
```powershell
# Télécharger Flutter SDK
# https://flutter.dev/docs/get-started/install/windows
# Ajouter au PATH
[System.Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\flutter\bin", "User")
```
## Instructions de Build
### Sur Windows
```powershell
# Cloner ou copier le projet
git clone <repo-url> audiOhm
cd audiOhm\frontend
# Installer dépendances
flutter pub get
# Builder
flutter build windows --release
```
## Output
L'exécutable sera créé dans:
```
build\windows\runner\Release\audiOhm.exe
```
## Copier dans builds/
```powershell
# Depuis le dossier du projet
Copy-Item -Recurse build\windows\runner\Release\* ..\builds\windows\
```
## Exécution
```powershell
cd C:\path\to\audiOhm\builds\windows
.\audiOhm.exe
```
## Informations de Build
- **Nom de l'exécutable:** `audiOhm.exe`
- **Architecture:** x64
- **Configuration:** Release
- **Framework:** Flutter 3.38.7
- **Dart:** 3.10.7
## Alternative depuis Linux
Pour tester l'application sur Windows depuis Linux:
### Option 1: Machine virtuelle Windows
```bash
# Créer VM Windows avec VirtualBox/VMware
# Installer Visual Studio et Flutter
# Builder sur la VM
```
### Option 2: Windows Remote
```bash
# Copier le code sur une machine Windows distante
# SSH/RDP dans la machine
# Builder
```
### Option 3: GitHub Actions
Utiliser CI/CD pour builder automatiquement sur Windows:
```yaml
# .github/workflows/windows.yml
name: Build Windows
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- run: flutter pub get
- run: flutter build windows --release
- uses: actions/upload-artifact@v3
with:
name: audiOhm-windows
path: frontend/build/windows/runner/Release/
```
## Dépannage
### "Visual Studio not found"
→ Installer Visual Studio 2022 avec "Développement Desktop en C++"
### "Build failed"
```powershell
flutter clean
flutter pub get
flutter build windows --release
```
### Problèmes de dépendances
```powershell
flutter doctor -v
```
## Export depuis Linux
Pour transférer le code vers Windows:
```bash
# Créer archive
cd /opt/audiOhm
tar czf audiOhm.tar.gz --exclude='build' --exclude='.dart_tool' frontend/
# Transférer via SCP/USB/etc.
scp audiOhm.tar.gz user@windows-machine:/path/to/destination/
```
Puis sur Windows:
```powershell
# Extraire
tar -xzf audiOhm.tar.gz
cd frontend
flutter build windows --release
```