- 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
1.8 KiB
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:
- Frontend: http://localhost:3000
- Backend: http://localhost:8080
- Swagger: http://localhost:8080/docs
📦 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