178 lines
4.9 KiB
YAML
178 lines
4.9 KiB
YAML
# =============================================================================
|
|
# PROJECT-ENV-CONFIG.yml - ERP MECANICAS DIESEL
|
|
# =============================================================================
|
|
# Vertical de ERP-Suite especializada en Talleres Mecánicos Diesel
|
|
# Actualizado: 2025-12-08
|
|
# Referencia: ~/workspace/core/devtools/environment/DEVENV-PORTS.md
|
|
# =============================================================================
|
|
|
|
project:
|
|
name: "ERP-MECANICAS-DIESEL"
|
|
code: "MMD"
|
|
description: "Sistema para Talleres Mecánicos Especializados en Vehículos Diesel"
|
|
type: "vertical"
|
|
level: "2B.2"
|
|
status: "development"
|
|
parent: "erp-suite"
|
|
|
|
paths:
|
|
root: "/home/isem/workspace/projects/erp-suite/apps/verticales/mecanicas-diesel"
|
|
backend: "backend/"
|
|
frontend: "frontend/"
|
|
database: "database/"
|
|
docs: "docs/"
|
|
orchestration: "orchestration/"
|
|
|
|
# =============================================================================
|
|
# PUERTOS (Según DEVENV-PORTS.md)
|
|
# =============================================================================
|
|
ports:
|
|
backend: 3300
|
|
frontend: 5176
|
|
database: 5435
|
|
redis: 6382
|
|
|
|
# =============================================================================
|
|
# BASE DE DATOS
|
|
# =============================================================================
|
|
database:
|
|
type: "postgresql"
|
|
host: "localhost"
|
|
port: 5435
|
|
name: "mecanicas_diesel_db"
|
|
user: "mecanicas_user"
|
|
|
|
schemas:
|
|
core_inherited: 12 # Schemas heredados de erp-core
|
|
vertical_specific:
|
|
- service_management # Órdenes trabajo, técnicos
|
|
- parts_management # Refacciones, compatibilidad
|
|
- vehicle_management # Vehículos, marcas, modelos
|
|
|
|
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
|
|
|
|
specs_applicable: 6
|
|
specs_implemented: 0
|
|
specs_detail:
|
|
- SPEC-VALORACION-INVENTARIO
|
|
- SPEC-TRAZABILIDAD-LOTES-SERIES
|
|
- SPEC-PRICING-RULES
|
|
- SPEC-INVENTARIOS-CICLICOS
|
|
- SPEC-FACTURACION-CFDI
|
|
- SPEC-MAIL-THREAD-TRACKING
|
|
|
|
# =============================================================================
|
|
# MODULOS DE LA VERTICAL
|
|
# =============================================================================
|
|
modules:
|
|
total: 5
|
|
story_points: 186
|
|
list:
|
|
- code: MMD-001
|
|
name: Fundamentos
|
|
sp: 42
|
|
priority: P0
|
|
status: pending
|
|
- code: MMD-002
|
|
name: Órdenes de Trabajo
|
|
sp: 55
|
|
priority: P0
|
|
status: pending
|
|
- code: MMD-003
|
|
name: Inventario Refacciones
|
|
sp: 42
|
|
priority: P0
|
|
status: pending
|
|
- code: MMD-004
|
|
name: Cotizaciones
|
|
sp: 26
|
|
priority: P0
|
|
status: pending
|
|
- code: MMD-005
|
|
name: Facturación
|
|
sp: 21
|
|
priority: P0
|
|
status: pending
|
|
|
|
# =============================================================================
|
|
# DOMINIO ESPECIFICO
|
|
# =============================================================================
|
|
domain:
|
|
work_order_states:
|
|
- RECIBIDO
|
|
- DIAGNOSTICO
|
|
- PRESUPUESTO
|
|
- APROBADO
|
|
- EN_PROCESO
|
|
- COMPLETADO
|
|
- ENTREGADO
|
|
|
|
part_compatibility:
|
|
description: "Matriz de compatibilidad marca/modelo/año"
|
|
fields:
|
|
- partId
|
|
- vehicleBrandId
|
|
- vehicleModelId
|
|
- yearFrom
|
|
- yearTo
|
|
|
|
# =============================================================================
|
|
# ARCHIVOS DE ENTORNO
|
|
# =============================================================================
|
|
env_files:
|
|
template: "orchestration/environment/.env.example"
|
|
backend: "backend/.env"
|
|
frontend: "frontend/.env"
|
|
docker_compose: "docker-compose.yml"
|
|
|
|
env_variables:
|
|
required:
|
|
- NODE_ENV
|
|
- PORT
|
|
- DATABASE_URL
|
|
- JWT_SECRET
|
|
- REDIS_URL
|
|
optional:
|
|
- LOG_LEVEL
|
|
- CORS_ORIGIN
|
|
|
|
# =============================================================================
|
|
# NOTAS
|
|
# =============================================================================
|
|
notes: |
|
|
- Vertical especializada en talleres mecánicos diesel
|
|
- Flujo de órdenes de trabajo con 7 estados
|
|
- Matriz de compatibilidad de refacciones por vehículo
|
|
- Integración con CFDI para facturación de servicios
|
|
- Puertos asignados según DEVENV-PORTS.md (rango 3300)
|