veza/COMMANDES_RAPIDES.md
senke 16dcd0657b [DOC] Fix frontend port to 3000 in startup guides
- Update port from 5173 to 3000 (actual Vite config)
- Update CORS_ALLOWED_ORIGINS examples
- Fix all URL references
2026-01-04 01:44:13 +01:00

103 lines
1.8 KiB
Markdown

# ⚡ Commandes Rapides - Veza Integration
## 🚀 Démarrage Ultra-Rapide
```bash
# Tout en un (recommandé)
make setup # Installation initiale (une fois)
make infra-up # Démarrer Postgres + Redis + RabbitMQ
make db-migrate # Migrations DB
make dev # Démarrer TOUT (backend + frontend)
```
**Résultat**:
- Frontend: http://localhost:3000
- Backend: http://localhost:8080
- Swagger: http://localhost:8080/docs
---
## 📦 Infrastructure Docker
```bash
make infra-up # Démarrer (Postgres, Redis, RabbitMQ)
make infra-down # Arrêter
make db-shell # Connexion Postgres
make redis-shell # Connexion Redis
make status # Vérifier santé services
```
---
## 🔧 Backend Go
```bash
cd veza-backend-api
# Configuration minimale (.env)
cat > .env << EOF
APP_ENV=development
JWT_SECRET=dev-secret-key-minimum-32-characters-long
DATABASE_URL=postgres://veza:password@localhost:5432/veza?sslmode=disable
REDIS_URL=redis://localhost:6379
CORS_ALLOWED_ORIGINS=http://localhost:3000
EOF
# Démarrer
go run cmd/api/main.go
```
**Port**: 8080
**Health**: http://localhost:8080/health
**Swagger**: http://localhost:8080/docs
---
## 🎨 Frontend React
```bash
cd apps/web
# Installer (une fois)
npm install
# Démarrer
npm run dev
```
**Port**: 3000 (configuré dans vite.config.ts)
**URL**: http://localhost:3000
---
## ✅ Vérification Rapide
```bash
# Backend health
curl http://localhost:8080/health
# Frontend accessible
curl http://localhost:3000
# Swagger UI
open http://localhost:8080/docs
```
---
## 🐛 Dépannage Express
```bash
# Ports occupés
lsof -i :8080 :3000 :5432 :6379
# Logs Docker
docker compose logs -f
# Réinitialiser DB (⚠️ DESTRUCTIF)
docker compose down -v && make infra-up && make db-migrate
```
---
**Guide complet**: Voir `GUIDE_DEMARRAGE_INTEGRATION.md`