feat: simulador GPS con cron job y pub/sub Redis

This commit is contained in:
2026-05-23 01:06:04 -06:00
parent 1667e4fb66
commit d1bfc9fbac
280 changed files with 30733 additions and 11 deletions

20
backend/env Normal file
View File

@@ -0,0 +1,20 @@
PORT=3000
DB_HOST=localhost
DB_PORT=5433
DB_NAME=recoleccion_db
DB_USER=recoleccion
DB_PASSWORD=recoleccion123
REDIS_HOST=localhost
REDIS_PORT=6380
JWT_SECRET=hackathon_celaya_2026_secret_key
JWT_EXPIRES_IN=7d
# Simulador GPS
# TIME_MULTIPLIER: cuántos segundos simulados por segundo real
# 1 = tiempo real | 60 = demo (1 min real = 1 hora simulada)
TIME_MULTIPLIER=60
# CRON_SCHEDULE: cada cuánto corre el simulador
# '*/1 * * * *' = cada 1 minuto (recomendado)
# '*/30 * * * * *' = cada 30 segundos (más responsivo en demo)
CRON_SCHEDULE=*/1 * * * *