How nahiyanasir/cinema-tube-cl works
Cinema Tube is a movie and series portal for discovering and watching media, managing a personal profile, reviewing titles, and purchasing or subscribing to premium access. Its principal user journey runs from browsing or searching the catalog to a title detail or watch page, with review and payment flows as related branches. Admin routes provide catalog, genre, user, review, payment, and analytics management. The tree and README establish these product areas; sampled source confirms review submission and the server-side API/authentication client, but not the wiring of most unsampled pages and services.
Main entry points: httpClient.ts HTTP client · auth.service.ts Authentication service · ReviewForm.tsx Reviews · page.tsx Home
Components 21
Media discovery
- Home
src/app/(commonLayout)/page.tsx - Explore catalog
src/app/(commonLayout)/explore/page.tsx - Media details
src/app/(commonLayout)/media/[slug]/page.tsx - Watch media
src/app/(commonLayout)/watch/[slug]/page.tsx - Media services
src/service/media.service.ts
Accounts and community
- Sign in and register
src/app/(commonLayout)/(authPages)/login/page.tsx - Authentication service
src/service/auth.service.ts - Profile and collections
src/app/(commonLayout)/profile/page.tsx - Reviews
src/components/Review/ReviewForm.tsx
Payments and plans
- Media checkout
src/app/(commonLayout)/payment/media-checkout/page.tsx - Subscription
src/app/(commonLayout)/subscription/page.tsx - Payment services
src/service/payment.service.ts - Subscription services
src/service/subscription.service.ts
Administration
- Review moderation
src/app/(adminLayout)/admin/reviews/page.tsx - Media management
src/app/(adminLayout)/admin/media/page.tsx - Genre management
src/app/(adminLayout)/admin/genres/page.tsx - User management
src/app/(adminLayout)/admin/users/page.tsx - Analytics dashboard
src/app/(adminLayout)/admin/analytics/page.tsx
API access
- Backend API
- HTTP client
src/lib/axios/httpClient.ts
Other components
- Viewer
Connections 5
- Viewer → Home: opens
- Reviews → Media services: submits review
- HTTP client → Backend API: sends requests
- HTTP client → Authentication service: refreshes tokens
- Authentication service → Backend API: fetches auth data