# 🔐 Identifiants de Test - Veza MVP **Date de crĂ©ation** : 2025-01-16 ## đŸ‘€ Compte Utilisateur de Test ### Identifiants Principaux ``` Email : test@veza.app Username : testuser Password : test123 ``` ### Utilisation 1. **Ouvrir le navigateur** : http://localhost:5173 2. **Aller sur la page de login** : http://localhost:5173/login 3. **Se connecter avec** : - Email : `test@veza.app` - Password : `test123` ## 🚀 Services DĂ©marrĂ©s ### Backend API - **URL** : http://localhost:8080 - **API Base** : http://localhost:8080/api/v1 - **Health Check** : http://localhost:8080/api/v1/health (ou /health) ### Frontend - **URL** : http://localhost:5173 - **HMR** : ActivĂ© (Hot Module Replacement) ## 📋 Endpoints de Test ### Authentification ```bash # Login POST http://localhost:8080/api/v1/auth/login Body: { "email": "test@veza.app", "password": "test123" } # Get Current User GET http://localhost:8080/api/v1/auth/me Headers: Cookie: access_token=... # Logout POST http://localhost:8080/api/v1/auth/logout ``` ### Tracks ```bash # List Tracks GET http://localhost:8080/api/v1/tracks # Create Track POST http://localhost:8080/api/v1/tracks ``` ### Playlists ```bash # List Playlists GET http://localhost:8080/api/v1/playlists # Create Playlist POST http://localhost:8080/api/v1/playlists ``` ## 🔧 Commandes Utiles ### ArrĂȘter les services ```bash # Backend pkill -f veza-api # ou kill $(cat backend.pid) # Frontend pkill -f vite # ou kill $(cat frontend.pid) ``` ### RedĂ©marrer les services ```bash # Backend cd veza-backend-api nohup ./bin/veza-api > ../backend.log 2>&1 & echo $! > ../backend.pid # Frontend cd apps/web nohup npm run dev > ../../frontend.log 2>&1 & echo $! > ../../frontend.pid ``` ### VĂ©rifier les logs ```bash # Backend tail -f backend.log # Frontend tail -f frontend.log ``` ## ⚠ Notes Importantes 1. **ClamAV** : DĂ©sactivĂ© en dĂ©veloppement (uploads fonctionnent sans) 2. **CSRF** : DĂ©sactivĂ© en dĂ©veloppement pour faciliter les tests 3. **Role Bypass** : ActivĂ© en dĂ©veloppement (crĂ©ation de tracks sans rĂŽle spĂ©cifique) 4. **Base de donnĂ©es** : PostgreSQL sur localhost:5432 5. **Redis** : Optionnel (utilisĂ© pour rate limiting et sessions) ## 🐛 DĂ©pannage ### Backend ne dĂ©marre pas ```bash # VĂ©rifier la base de donnĂ©es psql -U veza -d veza -c "SELECT 1" # VĂ©rifier les variables d'environnement cd veza-backend-api cat .env ``` ### Frontend ne dĂ©marre pas ```bash # VĂ©rifier les dĂ©pendances cd apps/web npm install # VĂ©rifier le port lsof -i:5173 ``` ### Erreur de connexion ```bash # VĂ©rifier que les services sont dĂ©marrĂ©s curl http://localhost:8080/api/v1/health curl http://localhost:5173 ``` --- **Créé automatiquement le** : 2025-01-16