[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
This commit is contained in:
parent
9176af563b
commit
16dcd0657b
2 changed files with 9 additions and 9 deletions
|
|
@ -11,7 +11,7 @@ make dev # Démarrer TOUT (backend + frontend)
|
||||||
```
|
```
|
||||||
|
|
||||||
**Résultat**:
|
**Résultat**:
|
||||||
- Frontend: http://localhost:5173
|
- Frontend: http://localhost:3000
|
||||||
- Backend: http://localhost:8080
|
- Backend: http://localhost:8080
|
||||||
- Swagger: http://localhost:8080/docs
|
- Swagger: http://localhost:8080/docs
|
||||||
|
|
||||||
|
|
@ -40,7 +40,7 @@ APP_ENV=development
|
||||||
JWT_SECRET=dev-secret-key-minimum-32-characters-long
|
JWT_SECRET=dev-secret-key-minimum-32-characters-long
|
||||||
DATABASE_URL=postgres://veza:password@localhost:5432/veza?sslmode=disable
|
DATABASE_URL=postgres://veza:password@localhost:5432/veza?sslmode=disable
|
||||||
REDIS_URL=redis://localhost:6379
|
REDIS_URL=redis://localhost:6379
|
||||||
CORS_ALLOWED_ORIGINS=http://localhost:5173
|
CORS_ALLOWED_ORIGINS=http://localhost:3000
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Démarrer
|
# Démarrer
|
||||||
|
|
@ -65,8 +65,8 @@ npm install
|
||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
**Port**: 5173 (ou 3000 selon config Vite)
|
**Port**: 3000 (configuré dans vite.config.ts)
|
||||||
**URL**: http://localhost:5173
|
**URL**: http://localhost:3000
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -77,7 +77,7 @@ npm run dev
|
||||||
curl http://localhost:8080/health
|
curl http://localhost:8080/health
|
||||||
|
|
||||||
# Frontend accessible
|
# Frontend accessible
|
||||||
curl http://localhost:5173
|
curl http://localhost:3000
|
||||||
|
|
||||||
# Swagger UI
|
# Swagger UI
|
||||||
open http://localhost:8080/docs
|
open http://localhost:8080/docs
|
||||||
|
|
@ -89,7 +89,7 @@ open http://localhost:8080/docs
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Ports occupés
|
# Ports occupés
|
||||||
lsof -i :8080 :5173 :5432 :6379
|
lsof -i :8080 :3000 :5432 :6379
|
||||||
|
|
||||||
# Logs Docker
|
# Logs Docker
|
||||||
docker compose logs -f
|
docker compose logs -f
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
### Services
|
### Services
|
||||||
- **Backend Go**: Port `8080` (`veza-backend-api/`)
|
- **Backend Go**: Port `8080` (`veza-backend-api/`)
|
||||||
- **Frontend React**: Port `5173` (`apps/web/`)
|
- **Frontend React**: Port `3000` (`apps/web/`) - configuré dans `vite.config.ts`
|
||||||
- **Chat Server Rust**: Port `8081` (optionnel pour tests)
|
- **Chat Server Rust**: Port `8081` (optionnel pour tests)
|
||||||
- **Stream Server Rust**: Port `8082` (optionnel pour tests)
|
- **Stream Server Rust**: Port `8082` (optionnel pour tests)
|
||||||
|
|
||||||
|
|
@ -70,11 +70,11 @@ make dev
|
||||||
**Résultat**:
|
**Résultat**:
|
||||||
- ✅ Infrastructure Docker démarrée
|
- ✅ Infrastructure Docker démarrée
|
||||||
- ✅ Backend Go sur http://localhost:8080
|
- ✅ Backend Go sur http://localhost:8080
|
||||||
- ✅ Frontend React sur http://localhost:5173
|
- ✅ Frontend React sur http://localhost:3000
|
||||||
- ✅ Hot reload activé si outils installés (air, cargo-watch)
|
- ✅ Hot reload activé si outils installés (air, cargo-watch)
|
||||||
|
|
||||||
**Accès**:
|
**Accès**:
|
||||||
- Frontend: http://localhost:5173
|
- Frontend: http://localhost:3000
|
||||||
- Backend API: http://localhost:8080/api/v1
|
- Backend API: http://localhost:8080/api/v1
|
||||||
- Swagger: http://localhost:8080/docs
|
- Swagger: http://localhost:8080/docs
|
||||||
- RabbitMQ UI: http://localhost:15672 (veza/password)
|
- RabbitMQ UI: http://localhost:15672 (veza/password)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue