Some checks failed
CI/CD Pipeline / Backend CI (push) Has been cancelled
CI/CD Pipeline / Frontend CI (push) Has been cancelled
CI/CD Pipeline / WhatsApp Service CI (push) Has been cancelled
CI/CD Pipeline / Mobile CI (push) Has been cancelled
CI/CD Pipeline / Docker Build (./apps/backend, ./apps/backend/Dockerfile, backend) (push) Has been cancelled
CI/CD Pipeline / Docker Build (./apps/frontend, ./apps/frontend/Dockerfile, frontend) (push) Has been cancelled
CI/CD Pipeline / Docker Build (./apps/whatsapp-service, ./apps/whatsapp-service/Dockerfile, whatsapp-service) (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
- Add CLAUDE.md with project-specific instructions - Add .trae/rules/ and AGENT-CAPABILITIES.md - Add .windsurf/rules/ and AGENT-CAPABILITIES.md - Add .gemini/antigravity/README.md - Stack: NestJS 10.3.0 + React 19.2.0 + React Native (Expo) - Type: CONSUMER (receives from template-saas) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
102 lines
2.0 KiB
Markdown
102 lines
2.0 KiB
Markdown
# Project Rules - MiChangarrito (Trae IDE)
|
|
|
|
**Proyecto:** michangarrito
|
|
**Tipo:** CONSUMER (de template-saas)
|
|
**Sistema:** SIMCO v4.3.0
|
|
|
|
---
|
|
|
|
## Reglas Heredadas
|
|
|
|
Este proyecto hereda TODAS las reglas de:
|
|
- `workspace-v2/CLAUDE.md`
|
|
- `workspace-v2/.trae/rules.md`
|
|
- `template-saas/` (patrones SaaS)
|
|
|
|
Las reglas aquí son EXTENSIONES específicas del proyecto.
|
|
|
|
---
|
|
|
|
## Stack
|
|
|
|
- **Backend:** NestJS 10.3.0 + TypeScript
|
|
- **Frontend Web:** React 19.2.0 + Vite
|
|
- **Mobile:** React Native (Expo SDK 51)
|
|
- **Database:** PostgreSQL 16+
|
|
- **Cache:** Redis 7
|
|
|
|
---
|
|
|
|
## Credenciales BD
|
|
|
|
```
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_NAME=michangarrito_dev
|
|
DB_USER=michangarrito_dev
|
|
DB_PASS=mch_dev_2026
|
|
REDIS_PORT=6389
|
|
```
|
|
|
|
---
|
|
|
|
## Reglas Específicas
|
|
|
|
### 1. Multi-Tenancy (Changarritos)
|
|
|
|
- Cada changarrito es un tenant
|
|
- RLS obligatorio en todas las queries
|
|
- NUNCA acceder a datos de otro tenant
|
|
|
|
### 2. Plataformas Múltiples
|
|
|
|
- Todo cambio debe funcionar en WEB y MOBILE
|
|
- Usar componentes compartidos cuando sea posible
|
|
- Probar en ambas plataformas
|
|
|
|
### 3. Pagos México
|
|
|
|
- CoDi/SPEI: Solo sandbox de Banxico
|
|
- MercadoPago: Cuenta de pruebas
|
|
- Validar montos en MXN
|
|
|
|
### 4. WhatsApp Business
|
|
|
|
- Meta Cloud API únicamente
|
|
- Templates pre-aprobados
|
|
- Respetar rate limits
|
|
|
|
### 5. Tests
|
|
|
|
Cobertura mínima: 70%
|
|
Comando: `npm run test`
|
|
|
|
---
|
|
|
|
## Paths de Trabajo
|
|
|
|
```
|
|
Backend: projects/michangarrito/apps/backend/src/
|
|
Frontend: projects/michangarrito/apps/frontend/src/
|
|
Mobile: projects/michangarrito/apps/mobile/src/
|
|
WhatsApp: projects/michangarrito/apps/whatsapp-service/
|
|
MCP Server: projects/michangarrito/apps/mcp-server/
|
|
Database: projects/michangarrito/apps/database/
|
|
```
|
|
|
|
---
|
|
|
|
## Propagación
|
|
|
|
Como CONSUMER, michangarrito:
|
|
- **NO propaga** a otros proyectos
|
|
- Recibe cambios de template-saas (cuando aplique)
|
|
|
|
---
|
|
|
|
## Referencias
|
|
|
|
- CLAUDE.md local: `projects/michangarrito/CLAUDE.md`
|
|
- Directivas: `projects/michangarrito/orchestration/directivas/`
|
|
- Inventarios: `projects/michangarrito/orchestration/inventarios/`
|