codigo0/backend/ENV_TEMPLATE.md
planetazuzu 0201f16cf4
Some checks are pending
Auto Deploy to Server / deploy (push) Waiting to run
Update lab configuration 2026-03-22
2026-03-22 22:50:29 +01:00

553 B
Executable file

Configuración de Variables de Entorno

Crear archivo .env en backend/ con el siguiente contenido:

# Base de Datos PostgreSQL
DB_HOST=localhost
DB_PORT=5432
DB_NAME=emerges_tes
DB_USER=postgres
DB_PASSWORD=tu_password_aqui

# API Server
API_PORT=3000
API_HOST=localhost
NODE_ENV=development

# JWT Secret (generar con: openssl rand -base64 32)
JWT_SECRET=tu_jwt_secret_muy_seguro_aqui
JWT_EXPIRES_IN=24h

# CORS (múltiples orígenes separados por comas)
CORS_ORIGINS=http://localhost:8096,http://localhost:5174,http://localhost:5173