codigo0/backend/ENV_TEMPLATE.md

553 B

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