veza/COMMANDES_RAPIDES.md
senke 0cb81dcc06 [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

1.8 KiB

Commandes Rapides - Veza Integration

🚀 Démarrage Ultra-Rapide

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


📦 Infrastructure Docker

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

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

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

# Backend health
curl http://localhost:8080/health

# Frontend accessible
curl http://localhost:3000

# Swagger UI
open http://localhost:8080/docs

🐛 Dépannage Express

# 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