| .. | ||
| prisma | ||
| src | ||
| Dockerfile | ||
| entrypoint.sh | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Service API Centrale
API backend NestJS pour IPTV Cosmolan.
Modules
- auth : Gestion des sessions QR, JWT éphémère, RBAC.
- rooms : CRUD chambres/lits, association devices.
- iptv : Catalogue chaînes, playlists, EPG.
- requests : Demandes patient avec routage intelligent.
- chat : Messagerie temps réel patient/soignant.
- domotics : Commandes IoT via MQTT.
- education : Contenus thérapeutiques ciblés.
- audit : Journalisation et traçabilité.
Stack
- Node.js 20+ / NestJS 10+
- TypeScript
- Prisma ORM + PostgreSQL
- Socket.IO (WebSocket Gateway)
- gRPC (communication inter-services)
- Redis (cache, pub/sub, session blacklist)
Démarrage
cd services/api
pnpm install
pnpm run dev