erp-transportistas-v2/.trae/rules/project_rules.md
Adrian Flores Cortes 37ed0aa919 feat: Initial project structure for ERP Transportistas
Vertical ERP for freight transport and logistics companies.

Includes:
- Project configuration (CLAUDE.md, SIMCO orchestration)
- Backend submodule (NestJS 10.x)
- Frontend submodule (React 18.x + Vite)
- Database submodule (PostgreSQL 15 + PostGIS)
- Requirements documentation (REQ-GIRO-TRANSPORTISTA.md)
- 20 modules defined (MAI/MAE/MAA phases)

Key features:
- Transport orders (OT) management
- Fleet and driver management
- Real-time GPS tracking
- POD (Proof of Delivery)
- CFDI with Carta Porte 3.1 compliance
- Fuel and maintenance control
- Third-party carrier management

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 09:53:54 -06:00

40 lines
979 B
Markdown

# Reglas de Proyecto - ERP Transportistas (Trae)
## Contexto del Proyecto
Este es un ERP vertical para empresas de transporte de carga. Hereda de erp-core y agrega modulos especificos del giro.
## Reglas Criticas
1. **Terminologia**: Usar terminos del giro (OT, Viaje, Operador, POD, Carrier)
2. **Multi-tenancy**: Toda entidad debe tener tenantId
3. **Carta Porte**: Validar datos antes de liberar viajes
4. **Tracking**: Todo evento con timestamp y geolocalizacion
## Estructura de Modulos
```
backend/src/modules/{modulo}/
├── entities/
├── services/
├── controllers/
└── dto/
```
## Nomenclatura
- MAI-XXX: Modulo Aplicacion Inicial
- MAE-XXX: Modulo Aplicacion Extendido
- MAA-XXX: Modulo Aplicacion Avanzado
## Antes de Implementar
1. Leer REQ-GIRO-TRANSPORTISTA.md
2. Verificar si existe en erp-core
3. Validar coherencia DDL <-> Entity
## Referencias
- CLAUDE.md en raiz del proyecto
- docs/03-requerimientos/REQ-GIRO-TRANSPORTISTA.md