workspace-v1/projects/erp-construccion/.env.example
rckrdmrd 66161b1566 feat: Workspace-v1 complete migration with NEXUS v3.4
Sistema NEXUS v3.4 migrado con:

Estructura principal:
- core/orchestration: Sistema SIMCO + CAPVED (27 directivas, 28 perfiles)
- core/catalog: Catalogo de funcionalidades reutilizables
- shared/knowledge-base: Base de conocimiento compartida
- devtools/scripts: Herramientas de desarrollo
- control-plane/registries: Control de servicios y CI/CD
- orchestration/: Configuracion de orquestacion de agentes

Proyectos incluidos (11):
- gamilit (submodule -> GitHub)
- trading-platform (OrbiquanTIA)
- erp-suite con 5 verticales:
  - erp-core, construccion, vidrio-templado
  - mecanicas-diesel, retail, clinicas
- betting-analytics
- inmobiliaria-analytics
- platform_marketing_content
- pos-micro, erp-basico

Configuracion:
- .gitignore completo para Node.js/Python/Docker
- gamilit como submodule (git@github.com:rckrdmrd/gamilit-workspace.git)
- Sistema de puertos estandarizado (3005-3199)

Generated with NEXUS v3.4 Migration System
EPIC-010: Configuracion Git y Repositorios
2026-01-04 03:37:42 -06:00

120 lines
4.0 KiB
Plaintext

# =============================================================================
# ERP Construccion - Environment Variables
# =============================================================================
# Copia este archivo a .env y configura los valores
# cp .env.example .env
# -----------------------------------------------------------------------------
# APPLICATION
# -----------------------------------------------------------------------------
NODE_ENV=development
APP_PORT=3000
API_VERSION=v1
# -----------------------------------------------------------------------------
# DATABASE - PostgreSQL
# -----------------------------------------------------------------------------
DB_HOST=localhost
DB_PORT=5432
DB_USER=construccion
DB_PASSWORD=construccion_dev_2024
DB_NAME=erp_construccion
DB_SCHEMA=public
# Database Pool
DB_POOL_MIN=2
DB_POOL_MAX=10
# -----------------------------------------------------------------------------
# REDIS
# -----------------------------------------------------------------------------
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=redis_dev_2024
# -----------------------------------------------------------------------------
# JWT & AUTHENTICATION
# -----------------------------------------------------------------------------
JWT_SECRET=your-super-secret-jwt-key-change-in-production-minimum-32-chars
JWT_EXPIRES_IN=1d
JWT_REFRESH_EXPIRES_IN=7d
# -----------------------------------------------------------------------------
# CORS
# -----------------------------------------------------------------------------
CORS_ORIGIN=http://localhost:5173,http://localhost:3001
CORS_CREDENTIALS=true
# -----------------------------------------------------------------------------
# LOGGING
# -----------------------------------------------------------------------------
LOG_LEVEL=debug
LOG_FORMAT=dev
# -----------------------------------------------------------------------------
# FILE STORAGE (S3 Compatible)
# -----------------------------------------------------------------------------
STORAGE_TYPE=local
# STORAGE_TYPE=s3
# S3_BUCKET=construccion-files
# S3_REGION=us-east-1
# S3_ACCESS_KEY_ID=your-access-key
# S3_SECRET_ACCESS_KEY=your-secret-key
# S3_ENDPOINT=https://s3.amazonaws.com
# Local storage path (when STORAGE_TYPE=local)
UPLOAD_PATH=./uploads
# -----------------------------------------------------------------------------
# EMAIL (SMTP)
# -----------------------------------------------------------------------------
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=noreply@construccion.local
# -----------------------------------------------------------------------------
# WHATSAPP BUSINESS API (Optional)
# -----------------------------------------------------------------------------
# WHATSAPP_API_URL=https://graph.facebook.com/v17.0
# WHATSAPP_PHONE_NUMBER_ID=your-phone-number-id
# WHATSAPP_ACCESS_TOKEN=your-access-token
# WHATSAPP_VERIFY_TOKEN=your-verify-token
# -----------------------------------------------------------------------------
# INTEGRATIONS (Optional)
# -----------------------------------------------------------------------------
# IMSS
# IMSS_API_URL=https://api.imss.gob.mx
# IMSS_CERTIFICATE_PATH=/certs/imss.p12
# IMSS_CERTIFICATE_PASSWORD=
# INFONAVIT
# INFONAVIT_API_URL=https://api.infonavit.org.mx
# INFONAVIT_CLIENT_ID=
# INFONAVIT_CLIENT_SECRET=
# SAT (CFDI)
# PAC_URL=https://api.pac.com.mx
# PAC_USER=
# PAC_PASSWORD=
# -----------------------------------------------------------------------------
# FEATURE FLAGS
# -----------------------------------------------------------------------------
FEATURE_HSE_AI=false
FEATURE_WHATSAPP_BOT=false
FEATURE_BIOMETRIC=false
# -----------------------------------------------------------------------------
# DOCKER COMPOSE OVERRIDES
# -----------------------------------------------------------------------------
# Used by docker-compose.yml
BACKEND_PORT=3000
FRONTEND_PORT=5173
ADMINER_PORT=8080
MAILHOG_SMTP_PORT=1025
MAILHOG_WEB_PORT=8025
BUILD_TARGET=development