================================================================= PBH IMMO - APPLICATION DE FORMATION ET COACHING Guide d'installation rapide ================================================================= IMPORTANT : Ce projet nécessite PHP 8.2+, MySQL 8+ et Composer. Les fichiers vendor/ ne sont PAS inclus - vous devez les générer. ================================================================= INSTALLATION LOCALE (Développement) ================================================================= 1. Installer les dépendances : cd pbh-immo composer install npm install && npm run build 2. Configuration : cp .env.example .env php artisan key:generate 3. Éditer .env avec vos paramètres database 4. Base de données : php artisan migrate php artisan db:seed 5. Lancer : php artisan serve 6. Accéder : http://localhost:8000 Login : admin@pbh-immo.fr / Admin2024! ================================================================= DÉPLOIEMENT OVH MUTUALISÉ ================================================================= 1. Build local : composer install --optimize-autoloader --no-dev npm run build php artisan config:cache php artisan route:cache 2. Upload FTP : tous les fichiers sauf .env, node_modules/, .git/ 3. Créer .env sur le serveur (copier .env.example) - Configurer DB_* avec infos OVH - Configurer MAIL_* avec ssl0.ovh.net:587/TLS - Générer CRON_TOKEN unique 4. Permissions SSH/FTP : chmod -R 755 storage bootstrap/cache 5. Database via phpMyAdmin : php artisan migrate --force php artisan db:seed --force 6. Storage link : php artisan storage:link 7. CRON OVH (toutes les 5 min) : curl -X POST "https://votredomaine.fr/cron/notifications?token=VOTRE_TOKEN" ================================================================= STRUCTURE & FONCTIONNALITÉS ================================================================= ✓ Authentification avec 4 rôles (Admin/Formateur/Leader/Collaborateur) ✓ Gestion collaborateurs (CRUD complet) ✓ Onboarding (5 étapes de validation) ✓ 6 Modules de formation (présence + score participation) ✓ Coaching sur 6 mois (M+1/M+3/M+6, 10 thèmes, 50+ compétences) ✓ Ressources (vidéos YouTube + documents) ✓ Forum (canaux, fils, posts, @mentions, pièces jointes, recherche fulltext) ✓ Notifications email (file asynchrone via CRON HTTP) ✓ Export PDF collaborateur ✓ Système de permissions par rôle ✓ Interface responsive Tailwind CSS + Alpine.js ================================================================= COMPTES DE TEST ================================================================= Admin : admin@pbh-immo.fr / Admin2024! Formateur : formateur@pbh-immo.fr / Formateur2024! Leader 1 : sophie.bernard@pbh-immo.fr / Leader2024! Leader 2 : thomas.lefebvre@pbh-immo.fr / Leader2024! Collaborateur : marie.petit@pbh-immo.fr / Collab2024! 10 collaborateurs de test sont créés (5 par leader) ================================================================= COMMANDES UTILES ================================================================= # Vider tous les caches php artisan cache:clear && php artisan config:clear && php artisan route:clear && php artisan view:clear # Réinitialiser mot de passe php artisan tinker >>> $u = App\Models\User::where('email', 'user@pbh-immo.fr')->first(); >>> $u->password = Hash::make('NouveauMdp123!'); >>> $u->save(); # Créer nouvel admin php artisan tinker >>> App\Models\User::create(['nom'=>'Test', 'prenom'=>'Admin', 'email'=>'test@pbh-immo.fr', 'telephone'=>'0600000000', 'adresse_postale'=>'1 rue Test', 'role'=>'admin', 'password'=>Hash::make('Password123!')]); ================================================================= DÉPANNAGE ================================================================= Erreur 500 : - Vérifier storage/logs/laravel.log - Permissions : chmod -R 775 storage bootstrap/cache - Vider cache Emails non envoyés : - Vérifier MAIL_* dans .env - Tester via php artisan tinker - Vérifier CRON actif Images non visibles : - php artisan storage:link - Vérifier permissions storage/ ================================================================= SUPPORT ================================================================= Documentation Laravel : https://laravel.com/docs/11.x Documentation Tailwind : https://tailwindcss.com/docs Ce projet est propriétaire - PBH IMMO © 2024 =================================================================