- Add TTSService.js for text-to-speech functionality - Add comprehensive deployment documentation (guides, checklists, diagnostics) - Add new SBS content (chapters 8 & 9) - Refactor 14 game modules for better maintainability (-947 lines) - Enhance SettingsDebug.js with improved debugging capabilities - Update configuration files and startup scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
303 lines
16 KiB
Plaintext
303 lines
16 KiB
Plaintext
╔══════════════════════════════════════════════════════════════════════════════╗
|
|
║ ║
|
|
║ 📦 GUIDE DE DÉPLOIEMENT RAPIDE - CLASS GENERATOR 📦 ║
|
|
║ ║
|
|
║ Système de Défense en Profondeur v1.1 ║
|
|
║ ║
|
|
╚══════════════════════════════════════════════════════════════════════════════╝
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 🎯 POUR L'UTILISATEUR FINAL │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
Lisez en PRIORITÉ: LISEZMOI.txt
|
|
|
|
3 étapes simples:
|
|
1. DIAGNOSTIC.bat → Vérifier le système
|
|
2. START_PORTABLE_SAFE.bat → Démarrer l'application
|
|
3. Ouvrir Firefox sur http://localhost:8080
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 🛠️ POUR LE DÉPLOYEUR (VOUS) │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
Documentation complète:
|
|
|
|
📋 DEPLOYMENT_CHECKLIST.md
|
|
→ Checklist étape par étape pour le déploiement
|
|
→ À SUIVRE lors du déploiement sur site
|
|
|
|
📚 DEPLOYMENT_GUIDE.md
|
|
→ Guide complet de troubleshooting
|
|
→ Solutions à tous les problèmes connus
|
|
|
|
🎯 PLAN_B_STRATEGY.txt
|
|
→ Vue d'ensemble de la stratégie de défense
|
|
→ Probabilités de succès par scénario
|
|
|
|
🦊 FIREFOX_REQUIS.txt
|
|
→ Tout sur la contrainte Firefox
|
|
→ Options d'installation
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ ⚡ DÉMARRAGE ULTRA-RAPIDE │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
AVANT DE PARTIR (sur votre machine):
|
|
────────────────────────────────────
|
|
1. npm install
|
|
2. Copier TOUT le dossier (avec node_modules/)
|
|
3. Tester avec DIAGNOSTIC.bat
|
|
4. Si OK → Package prêt
|
|
|
|
SUR LA MACHINE CIBLE (15 minutes):
|
|
──────────────────────────────────
|
|
1. Copier/Décompresser le dossier
|
|
2. Double-clic DIAGNOSTIC.bat (2 min)
|
|
3. Double-clic START_PORTABLE_SAFE.bat (3 min)
|
|
4. Tester une fonctionnalité (5 min)
|
|
5. Done ✅
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 🔧 SCRIPTS DISPONIBLES │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
DIAGNOSTIC.bat
|
|
──────────────
|
|
• Vérifie 9 points critiques AVANT le lancement
|
|
• Détecte: Node.js, NPM, Firefox, port, permissions, antivirus
|
|
• Génère: DIAGNOSTIC_REPORT.txt
|
|
• Verdict: SUCCESS / CAUTION / FAILURE
|
|
→ À EXÉCUTER EN PREMIER
|
|
|
|
START_PORTABLE_SAFE.bat (RECOMMANDÉ)
|
|
─────────────────────────────────────
|
|
• Version améliorée avec défense en profondeur
|
|
• 7 étapes de vérification progressive
|
|
• Kill ciblé du port (pas tous les node.exe)
|
|
• Attente intelligente du serveur (ping HTTP)
|
|
• Logging automatique (logs/server.log)
|
|
• Messages d'erreur avec solutions
|
|
• Détection automatique de Firefox
|
|
→ UTILISER EN PRODUCTION
|
|
|
|
START_PORTABLE.bat (BACKUP)
|
|
───────────────────────────
|
|
• Version originale simplifiée
|
|
• Moins de vérifications
|
|
• Fallback si SAFE version échoue
|
|
→ BACKUP UNIQUEMENT
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ ⚠️ CONTRAINTES CRITIQUES │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
❌ Windows 10 UNIQUEMENT
|
|
→ Windows 7/8 non testés
|
|
→ Windows 11 devrait fonctionner
|
|
|
|
🦊 FIREFOX OBLIGATOIRE
|
|
→ Edge NE FONCTIONNE PAS
|
|
→ Chrome NE FONCTIONNE PAS
|
|
→ Firefox standard OU portable
|
|
→ Voir FIREFOX_REQUIS.txt
|
|
|
|
📦 node_modules/ PRÉ-INSTALLÉS FORTEMENT RECOMMANDÉ
|
|
→ Évite 80% des problèmes
|
|
→ Pas besoin d'internet sur place
|
|
→ Package ~200 MB vs 50 MB
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 📊 SYSTÈME DE DÉFENSE EN PROFONDEUR │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
Couche 1: Diagnostic Préventif
|
|
──────────────────────────────
|
|
• DIAGNOSTIC.bat vérifie TOUT avant le run
|
|
• Détection des problèmes potentiels
|
|
• Rapport pour support IT si besoin
|
|
|
|
Couche 2: Vérifications Progressives
|
|
─────────────────────────────────────
|
|
• START_PORTABLE_SAFE.bat vérifie en 7 étapes
|
|
• Stop immédiat si problème détecté
|
|
• Messages d'erreur avec solutions
|
|
|
|
Couche 3: Logging Automatique
|
|
──────────────────────────────
|
|
• logs/server.log capture tout
|
|
• Facilite le debug
|
|
• Affiché automatiquement en cas d'erreur
|
|
|
|
Couche 4: Documentation Complète
|
|
─────────────────────────────────
|
|
• Guide pour chaque problème
|
|
• Solutions testées
|
|
• FAQ et troubleshooting
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ ✅ CHECKLIST PRÉ-DÉPLOIEMENT │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
Package à préparer:
|
|
───────────────────
|
|
□ nodejs-portable/ complet (~50 MB)
|
|
□ node_modules/ PRÉ-INSTALLÉS (~100 MB) ← CRITIQUE
|
|
□ Tous les .bat (DIAGNOSTIC, START_PORTABLE_SAFE, START_PORTABLE)
|
|
□ Documentation (LISEZMOI.txt, guides .md, FIREFOX_REQUIS.txt)
|
|
□ src/, games/, styles/, server.js, index.html
|
|
□ package.json
|
|
|
|
Test local AVANT départ:
|
|
────────────────────────
|
|
□ Copier sur Desktop/TEST/
|
|
□ DIAGNOSTIC.bat → [SUCCESS] ou [CAUTION] acceptable
|
|
□ START_PORTABLE_SAFE.bat → "SUCCESS! Server is running"
|
|
□ Firefox s'ouvre automatiquement
|
|
□ Page charge
|
|
□ Tester une fonctionnalité
|
|
□ Arrêt propre (touche dans console)
|
|
□ Redémarrage → Remarche
|
|
|
|
Si TOUS cochés → Package validé ✅
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 🎯 TAUX DE SUCCÈS ESTIMÉS │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
Avec ce système:
|
|
|
|
Windows 10 standard (perso): 95% ✅
|
|
Entreprise avec antivirus: 75% ⚠️ (+35% vs avant)
|
|
Environnement restreint (école): 50% ⚠️ (+30% vs avant)
|
|
Ultra-sécurisé (banque/gouv): 25% ❌ (+20% vs avant)
|
|
|
|
Facteurs multiplicateurs:
|
|
• node_modules/ inclus: +20%
|
|
• Droits administrateur: +15%
|
|
• Exclusion antivirus: +10%
|
|
• Firefox pré-installé: +5%
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 🚨 PROBLÈMES CONNUS ET SOLUTIONS │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
Problème Solution Rapide
|
|
────────────────────────────────── ──────────────────────────────────────
|
|
Node.js won't run Exécuter en administrateur
|
|
OU exclusion antivirus
|
|
|
|
Port 8080 occupé Script le kill automatiquement
|
|
OU éditer server.js → PORT = 8081
|
|
|
|
Firefox not found Installer Firefox
|
|
OU Firefox Portable
|
|
OU ouvrir manuellement
|
|
|
|
Dependencies failed Inclure node_modules/ dans package
|
|
(évite le problème)
|
|
|
|
Server didn't start Vérifier logs/server.log
|
|
Affichés automatiquement en erreur
|
|
|
|
→ Détails: DEPLOYMENT_GUIDE.md
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 📞 EN CAS DE PROBLÈME SUR SITE │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
1. Exécuter DIAGNOSTIC.bat
|
|
→ Lire DIAGNOSTIC_REPORT.txt
|
|
|
|
2. Consulter DEPLOYMENT_GUIDE.md
|
|
→ Chercher le problème spécifique
|
|
|
|
3. Vérifier logs/server.log
|
|
→ Erreurs serveur détaillées
|
|
|
|
4. Si Firefox manque
|
|
→ Lire FIREFOX_REQUIS.txt
|
|
|
|
5. Si tout échoue après 1h
|
|
→ Collecter:
|
|
- DIAGNOSTIC_REPORT.txt
|
|
- logs/server.log
|
|
- Screenshots
|
|
→ Contacter IT avec ces fichiers
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 📦 OPTIONS DE PACKAGE │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
OPTION A: Package Léger (~50 MB)
|
|
────────────────────────────────
|
|
• nodejs-portable/
|
|
• Code source
|
|
• Scripts .bat
|
|
• PAS node_modules/
|
|
|
|
✅ Petit, rapide à transférer
|
|
❌ Nécessite internet sur place pour npm install
|
|
❌ Plus de risques d'échec
|
|
|
|
OPTION B: Package Complet (~200 MB) ⭐ RECOMMANDÉ
|
|
─────────────────────────────────────────────────
|
|
• nodejs-portable/
|
|
• Code source
|
|
• Scripts .bat
|
|
• node_modules/ PRÉ-INSTALLÉS
|
|
|
|
✅ Aucune dépendance internet
|
|
✅ Taux de succès +20%
|
|
✅ Installation plus rapide
|
|
❌ Plus gros à transférer
|
|
|
|
OPTION C: Package Ultra-Complet (~400 MB)
|
|
─────────────────────────────────────────
|
|
• nodejs-portable/
|
|
• Code source
|
|
• Scripts .bat
|
|
• node_modules/ PRÉ-INSTALLÉS
|
|
• FirefoxPortable/
|
|
|
|
✅ ZÉRO dépendance
|
|
✅ Fonctionne PARTOUT
|
|
✅ Taux de succès +25%
|
|
❌ Très gros à transférer
|
|
|
|
|
|
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
│ 🎓 FORMATION EXPRESS POUR L'UTILISATEUR FINAL │
|
|
└──────────────────────────────────────────────────────────────────────────────┘
|
|
|
|
À expliquer en 2 minutes:
|
|
|
|
1. "Double-cliquer sur START_PORTABLE_SAFE.bat"
|
|
2. "Attendre que Firefox s'ouvre automatiquement"
|
|
3. "Ne PAS fermer la fenêtre noire"
|
|
4. "Pour arrêter : appuyer sur une touche dans la fenêtre noire"
|
|
5. "Si problème : lire LISEZMOI.txt"
|
|
|
|
|
|
═══════════════════════════════════════════════════════════════════════════════
|
|
|
|
BONNE CHANCE POUR LE DÉPLOIEMENT ! 🚀
|
|
|
|
═══════════════════════════════════════════════════════════════════════════════
|
|
|
|
Version: 1.1
|
|
Date: 2025-10-18
|
|
Environnement cible: Windows 10 + Firefox
|
|
Testé: ✅
|