Backend-for-frontend service that aggregates data from OnaFlix microservices for mobile app consumption. Optimizes payloads, handles caching, and provides mobile-specific endpoints.
- Runtime: Node.js 20
- Language: TypeScript
- Framework: Express 4
- Validation: Zod
- HTTP Client: node-fetch
- Cache: Redis
npm install
npm run devExpects the catalog service at http://localhost:3001 (configurable via CATALOG_SERVICE_URL).
GET /api/v1/movies-- List movies (mobile-optimized)GET /api/v1/movies/:id-- Get movie detailGET /api/v1/movies/featured/home-- Home screen featured contentGET /api/v1/users/preferences-- Get user preferencesPUT /api/v1/users/preferences-- Update user preferencesGET /health-- Health check
npm test