How taniatripty/cine_tube-backend works
Cine-Tube is an Express backend for media discovery and access, user accounts, and community interaction. Requests enter through the application, then API controllers delegate work to domain services and return responses; authentication also supports Better Auth sessions and application tokens. Payment handling includes a Stripe webhook. The tree shows additional catalog, episode, subscription, and reporting domains, but their internal calls were not sampled. Edges are limited to relationships visible in excerpts or the source index, so some likely domain and storage links are omitted.
Main entry points: auth.services.ts Account operations · app.ts Express application · payment.controller.ts Payment endpoints · review.services.ts Review operations
Components 27
API entry
- Express application
src/app.ts - API route index
src/app/routes/index.ts - Prisma database
src/app/lib/prisma.ts
Accounts
- Account endpoints
src/app/module/auth/auth.controller.ts - Account operations
src/app/module/auth/auth.services.ts - Better Auth
src/app/lib/auth.ts - Token utilities
src/app/utils/token.ts
Media catalog
- Media endpoints
src/app/module/media/media.controller.ts - Media operations
src/app/module/media/media.services.ts - Genre management
src/app/module/genre/genre.services.ts - Episode management
src/app/module/episode/episode.services.ts - Season management
src/app/module/season/season.services.ts - Platform management
src/app/module/streamingPlatform/streamingPlatform.services.ts - Person management
src/app/module/person/person.services.ts - Tag management
src/app/module/tag/tag.services.ts
Community and commerce
- Review endpoints
src/app/module/review/review.controller.ts - Review operations
src/app/module/review/review.services.ts - Comment endpoints
src/app/module/commnet/comment.controller.ts - Comment operations
src/app/module/commnet/comment.services.ts - Watch list
src/app/module/watchList/watchList.services.ts - Content reporting
src/app/module/contentReport/contentReport.services.ts - Payment endpoints
src/app/module/payment/payment.controller.ts - Payment operations
src/app/module/payment/payment.services.ts - Subscriptions
src/app/module/subscription/subscription.services.ts - Media access
src/app/module/mediaAccess/mediaAccess.services.ts
Other components
- API client
- Stripe
Connections 13
- API client → Express application: sends requests
src/app.ts - Express application → API route index: mounts API routes
src/app.ts - Express application → Payment endpoints: routes webhook
src/app.ts - Account endpoints → Account operations: calls
src/app/module/auth/auth.controller.ts - Account operations → Better Auth: uses auth API
src/app/module/auth/auth.services.ts - Account operations → Token utilities: creates tokens
src/app/module/auth/auth.services.ts - Account operations → Prisma database: queries
src/app/module/auth/auth.services.ts - Media endpoints → Media operations: calls
src/app/module/media/media.controller.ts - Review endpoints → Review operations: calls
src/app/module/review/review.controller.ts - Review operations → Prisma database: reads and writes
src/app/module/review/review.services.ts - Comment endpoints → Comment operations: calls
src/app/module/commnet/comment.controller.ts - Payment endpoints → Payment operations: calls
src/app/module/payment/payment.controller.ts - Payment endpoints → Stripe: verifies webhook
src/app/module/payment/payment.controller.ts