veza/docs/archive/root-md/IDENTIFIANTS_TEST.md
senke 43af35fd93 chore(audit 2.2, 2.3): nettoyer .md et .json à la racine
- Archiver 131 .md dans docs/archive/root-md/
- Archiver 22 .json dans docs/archive/root-json/
- Conserver 7 .md utiles (README, CONTRIBUTING, CHANGELOG, etc.)
- Conserver package.json, package-lock.json, turbo.json
- Ajouter README d'index dans chaque archive
2026-02-15 14:35:08 +01:00

145 lines
2.7 KiB
Markdown

# 🔐 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