How mikom8/mtmovies_product works
MT Movies is a subscription streaming product with mobile and web clients backed by an Express API. The main user journey is authenticate, browse or search movies and series, open details, and watch; account, watchlist, plans, and administration are additional product areas. The backend also handles streaming, payments, recommendations, and catalog management. Relationships are limited to excerpted calls, route registrations, and SOURCE INDEX references; unsampled screens and route internals are not assumed.
Main entry points: server.js API server · App.jsx Web routes · main.jsx Web bootstrap · stream.js Streaming routes
Components 33
Mobile app
- App shell
Mobile/App.js - Mobile auth
Mobile/src/context/AuthContext.js - Mobile API client
Mobile/src/api/client.js - Mobile search
Mobile/src/screens/SearchScreen.js - Mobile navigation
Mobile/src/navigation/AppNavigator.js
Web dashboard
- Web bootstrap
dashboard/src/main.jsx - Web routes
dashboard/src/App.jsx - Web auth
dashboard/src/context/AuthContext.jsx - Movie context
dashboard/src/context/MovieContext.jsx - Web search
dashboard/src/pages/SearchPage.jsx - Landing
dashboard/src/pages/Landing.jsx - Login
dashboard/src/pages/Login.jsx - Administration
dashboard/src/pages/Admin.jsx - Movie playback
dashboard/src/pages/WatchPage.jsx - Series details
dashboard/src/pages/SeriesDetails.jsx - Series playback
dashboard/src/pages/WatchSeriesPage.jsx
Backend API
- API server
backend/server.js - Authentication routes
backend/routes/auth.js - Movie catalog routes
backend/routes/movies.js - Series routes
backend/routes/series.js - Streaming routes
backend/routes/stream.js - User routes
backend/routes/users.js - Payment routes
backend/routes/payments.js - Recommendations
backend/routes/recommendations.js - Admin routes
backend/routes/admin.js - Payment submission
backend/controllers/paymentController.js - Telegram streaming service
backend/services/telegram.js
Catalog and accounts
- Movie records
backend/models/Movie.js - Series records
backend/models/Series.js - User records
backend/models/User.js - Transactions
backend/models/Transaction.js
Other components
- Viewer
- MongoDB
Connections 35
- Viewer → App shell: uses
Mobile/App.js - App shell → Mobile auth: provides auth
Mobile/App.js - App shell → Mobile navigation: renders
Mobile/App.js - Mobile auth → Mobile API client: calls
Mobile/src/context/AuthContext.js - Mobile search → Mobile API client: searches via
Mobile/src/screens/SearchScreen.js - Mobile search → Movie catalog routes: requests movies
Mobile/src/screens/SearchScreen.js - Mobile search → Series routes: requests series
Mobile/src/screens/SearchScreen.js - Viewer → Web bootstrap: uses
dashboard/src/main.jsx - Web bootstrap → Web routes: renders
dashboard/src/main.jsx - Web bootstrap → Web auth: provides
dashboard/src/main.jsx - Web bootstrap → Movie context: provides
dashboard/src/main.jsx - Web routes → Landing: routes to
dashboard/src/App.jsx - Web routes → Login: routes to
dashboard/src/App.jsx - Web routes → Web search: routes to
dashboard/src/App.jsx - Web routes → Administration: routes to
dashboard/src/App.jsx - Web routes → Movie playback: routes to
dashboard/src/App.jsx - Web routes → Series details: routes to
dashboard/src/App.jsx - Web routes → Series playback: routes to
dashboard/src/App.jsx - Web search → Movie catalog routes: requests movies
dashboard/src/pages/SearchPage.jsx - Web search → Series routes: requests series
dashboard/src/pages/SearchPage.jsx - API server → Authentication routes: registers
backend/server.js - API server → Movie catalog routes: registers
backend/server.js - API server → Series routes: registers
backend/server.js - API server → Streaming routes: registers
backend/server.js - API server → User routes: registers
backend/server.js - API server → Payment routes: registers
backend/server.js - API server → Recommendations: registers
backend/server.js - API server → Admin routes: registers
backend/server.js - API server → MongoDB: connects to
backend/server.js - Authentication routes → User records: reads and writes
backend/routes/auth.js - Streaming routes → Movie records: uses
backend/routes/stream.js - Streaming routes → Series records: uses
backend/routes/stream.js - Streaming routes → Telegram streaming service: calls
backend/routes/stream.js - Payment submission → Transactions: creates
backend/controllers/paymentController.js - Payment submission → User records: uses
backend/controllers/paymentController.js