Enhance caching mechanism and logging configuration

- Updated .gitignore to include additional IDE and OS files, as well as log and web build directories.
- Expanded config.sample.yaml to include cache configuration options for memory and Redis.
- Modified wallamonitor.py to load cache configuration and initialize ArticleCache.
- Refactored QueueManager to utilize ArticleCache for tracking notified articles.
- Improved logging setup to dynamically determine log file path based on environment.
This commit is contained in:
Omar Sánchez Pizarro
2026-01-19 19:42:12 +01:00
parent b32b0b2e09
commit 9939c4d9ed
41 changed files with 6742 additions and 28 deletions

72
web/QUICKSTART.md Normal file
View File

@@ -0,0 +1,72 @@
# 🚀 Inicio Rápido - Interfaz Web
## Instalación Rápida
### 1. Instalar dependencias
**Backend:**
```bash
cd web/backend
npm install
```
**Frontend:**
```bash
cd web/frontend
npm install
```
### 2. Iniciar los servidores
**Opción A - Script automático (recomendado):**
```bash
cd web
./start.sh
```
**Opción B - Manual:**
Terminal 1 (Backend):
```bash
cd web/backend
npm start
```
Terminal 2 (Frontend):
```bash
cd web/frontend
npm run dev
```
### 3. Acceder a la interfaz
Abre tu navegador en: **http://localhost:3000**
## 🎯 Características Principales
- **Dashboard**: Estadísticas en tiempo real
- **Artículos**: Visualiza todos los artículos notificados
- **Favoritos**: Gestiona tus artículos favoritos
- **Workers**: Configura y gestiona tus búsquedas
- **Logs**: Monitorea los logs del sistema
## ⚙️ Configuración
La interfaz web lee automáticamente:
- `workers.json` - Configuración de workers
- `favorites.json` - Lista de favoritos
- `config.yaml` - Configuración general (solo lectura)
- `monitor.log` - Logs del sistema
## 🔧 Requisitos
- Node.js 18+
- El sistema Python de Wallamonitor debe estar ejecutándose
- Redis (opcional, pero recomendado)
## 📝 Notas
- Los cambios en la interfaz web se guardan automáticamente en los archivos JSON
- El sistema Python debe estar ejecutándose para que los workers funcionen
- Los artículos notificados solo están disponibles si usas Redis como cache