128 lines
3.7 KiB
YAML
128 lines
3.7 KiB
YAML
# =============================================================================
|
|
# PROJECT-ENV-CONFIG.yml - ERP CONSTRUCCION
|
|
# =============================================================================
|
|
# Vertical de ERP-Suite especializada en Administración de Obra
|
|
# Actualizado: 2025-12-08
|
|
# Referencia: ~/workspace/core/devtools/environment/DEVENV-PORTS.md
|
|
# =============================================================================
|
|
|
|
project:
|
|
name: "ERP-CONSTRUCCION"
|
|
code: "CON"
|
|
description: "Sistema de Administración de Obra y Proyectos de Construcción"
|
|
type: "vertical"
|
|
level: "2B.2"
|
|
status: "development"
|
|
parent: "erp-suite"
|
|
|
|
paths:
|
|
root: "/home/isem/workspace/projects/erp-suite/apps/verticales/construccion"
|
|
backend: "backend/"
|
|
frontend: "frontend/"
|
|
database: "database/"
|
|
docs: "docs/"
|
|
orchestration: "orchestration/"
|
|
|
|
# =============================================================================
|
|
# PUERTOS (Según DEVENV-PORTS.md)
|
|
# =============================================================================
|
|
ports:
|
|
backend: 3100
|
|
frontend: 5174
|
|
database: 5433
|
|
redis: 6380
|
|
|
|
# =============================================================================
|
|
# BASE DE DATOS
|
|
# =============================================================================
|
|
database:
|
|
type: "postgresql"
|
|
host: "localhost"
|
|
port: 5433
|
|
name: "construccion_db"
|
|
user: "construccion_user"
|
|
|
|
schemas:
|
|
core_inherited: 12 # Schemas heredados de erp-core
|
|
vertical_specific:
|
|
- construction # Proyectos, presupuestos
|
|
- progress # Avances, valuaciones
|
|
- contracts # Contratos, estimaciones
|
|
|
|
migration:
|
|
tool: "typeorm"
|
|
directory: "database/migrations/"
|
|
|
|
# =============================================================================
|
|
# STACK TECNOLOGICO
|
|
# =============================================================================
|
|
stack:
|
|
runtime: "Node.js 20+"
|
|
language: "TypeScript 5.3+"
|
|
backend:
|
|
framework: "Express.js"
|
|
orm: "TypeORM 0.3.17"
|
|
frontend:
|
|
framework: "React 18"
|
|
build: "Vite"
|
|
ui: "Tailwind CSS + shadcn/ui"
|
|
|
|
# =============================================================================
|
|
# HERENCIA DEL CORE
|
|
# =============================================================================
|
|
core_inheritance:
|
|
version: "0.6.0"
|
|
tables_inherited: 97
|
|
modules_inherited:
|
|
- auth
|
|
- users
|
|
- roles
|
|
- tenants
|
|
- inventory
|
|
- sales
|
|
- cfdi
|
|
|
|
specs_applicable: 18
|
|
specs_implemented: 0
|
|
|
|
# =============================================================================
|
|
# ARCHIVOS DE ENTORNO
|
|
# =============================================================================
|
|
env_files:
|
|
template: "orchestration/environment/.env.example"
|
|
backend: "backend/.env"
|
|
frontend: "frontend/.env"
|
|
|
|
env_variables:
|
|
required:
|
|
- NODE_ENV
|
|
- PORT
|
|
- DATABASE_URL
|
|
- JWT_SECRET
|
|
- REDIS_URL
|
|
optional:
|
|
- LOG_LEVEL
|
|
- CORS_ORIGIN
|
|
- RATE_LIMIT_MAX
|
|
|
|
# =============================================================================
|
|
# DOCKER
|
|
# =============================================================================
|
|
docker:
|
|
compose_file: "docker-compose.yml"
|
|
services:
|
|
- backend
|
|
- frontend
|
|
- postgres
|
|
- redis
|
|
|
|
# =============================================================================
|
|
# NOTAS
|
|
# =============================================================================
|
|
notes: |
|
|
- Vertical especializada en industria de la construcción
|
|
- Hereda auth, users, roles, tenants del erp-core
|
|
- Implementa módulos específicos: proyectos, presupuestos, avances
|
|
- Puertos asignados según DEVENV-PORTS.md (rango 3100)
|
|
- Requiere erp-core funcionando para módulos heredados
|