Parametrize configurations¡
This commit is contained in:
11
README.md
11
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user