Backend (water-api/): - Crear API REST completa con Express + TypeScript - Implementar autenticación JWT con refresh tokens - CRUD completo para: projects, concentrators, meters, gateways, devices, users, roles - Agregar validación con Zod para todas las entidades - Implementar webhooks para The Things Stack (LoRaWAN) - Agregar endpoint de lecturas con filtros y resumen de consumo - Implementar carga masiva de medidores via Excel (.xlsx) Frontend: - Crear cliente HTTP con manejo automático de JWT y refresh - Actualizar todas las APIs para usar nuevo backend - Agregar sistema de autenticación real (login, logout, me) - Agregar selector de tipo (LORA, LoRaWAN, Grandes) en concentradores y medidores - Agregar campo Meter ID en medidores - Crear modal de carga masiva para medidores - Agregar página de consumo con gráficas y filtros - Corregir carga de proyectos independiente de datos existentes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
623 B
Plaintext
27 lines
623 B
Plaintext
# Server Configuration
|
|
PORT=3000
|
|
NODE_ENV=development
|
|
|
|
# Database Configuration
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_NAME=water_db
|
|
DB_USER=postgres
|
|
DB_PASSWORD=your_password_here
|
|
|
|
# JWT Configuration
|
|
JWT_ACCESS_SECRET=your_access_secret_key_here
|
|
JWT_REFRESH_SECRET=your_refresh_secret_key_here
|
|
JWT_ACCESS_EXPIRES=15m
|
|
JWT_REFRESH_EXPIRES=7d
|
|
|
|
# CORS Configuration
|
|
CORS_ORIGIN=http://localhost:5173
|
|
|
|
# TTS (Third-party Telemetry Service) Configuration
|
|
TTS_ENABLED=false
|
|
TTS_BASE_URL=https://api.tts-service.com
|
|
TTS_APPLICATION_ID=your_application_id_here
|
|
TTS_API_KEY=your_api_key_here
|
|
TTS_WEBHOOK_SECRET=your_webhook_secret_here
|