Parametrize configurations¡

This commit is contained in:
jose-rZM
2025-12-24 12:44:34 +01:00
parent 0446a84e80
commit 4617634055
8 changed files with 105 additions and 30 deletions

View File

@@ -7,6 +7,16 @@
- Python 3.11+ y `pip`
- Node 18+ y `npm`
## Configuracion de entorno (local/prod)
Variables que usa `docker-compose` y el frontend:
```bash
cp .env.example .env
```
Notas:
- `VITE_API_BASE` por defecto apunta a `/taller/api` y el frontend proxya a la API.
- Para Jenkins local en contenedor: `JENKINS_BASE_URL=http://jenkins:8080`. Se hace necesario que back y jenkins estén en la misma red de Docker si se quiere probar en local.
- Para VPS: `JENKINS_BASE_URL=https://openbokeron.org/jenkins`.
## Backend (FastAPI)
```bash
cd backend
@@ -42,6 +52,7 @@ cd frontend
npm install
npm run dev -- --host --port 5173
```
Abrir `http://localhost:5173/taller/`.
Tests, lint/check:
```bash
cd frontend