How nourchene-hamrita/streamingapp works
This repository implements a video-sharing product: users sign up or log in, browse and search videos, interact with channels and comments, and manage saved videos and profiles. The React Native app routes users through these screens and uses an Axios service layer to call an Express/Mongoose backend. The backend separates HTTP routes, domain controllers, and MongoDB models. The file tree and excerpts establish much of this structure; the README is empty, and several feature screens and routes were not sampled, so uncertain connections are omitted or marked unverified.
Main entry points: Routes HTTP routes · apis.js HTTP service · VideoController.js Video operations · ChannelController.js Channel operations
Components 23
Mobile app
- Sign-in screens
myapp/Screens/Login.js - App navigation
myapp/navigations/Navigation.js - Video and library screens
myapp/Screens - Video search
myapp/Screens/Search.js - Channel view
myapp/Screens/Channel.js - User profile
myapp/Screens/Profile.js - HTTP service
myapp/services/apis.js
Backend API
- HTTP routes
Server/Routes
Domain logic
- Authentication
Server/Controllers/authController.js - User management
Server/Controllers/UserController.js - Video operations
Server/Controllers/VideoController.js - Channel operations
Server/Controllers/ChannelController.js - Saved videos
Server/Controllers/SavedController.js - Comments
Server/Controllers/CommentController.js - Following
Server/Controllers/followingController.js
Persistence
- User records
Server/Models/user.model.js - Video records
Server/Models/video.model.js - Channel records
Server/Models/channel.model.js - Saved records
Server/Models/saved.model.js - Comment records
Server/Models/comment.model.js - Following records
Server/Models/following.model.js
Other components
- App user
- MongoDB
Connections 33
- App user → Sign-in screens: signs in
- Sign-in screens → HTTP service: requests auth
myapp/Screens/Login.js - App user → App navigation: uses app
- App navigation → Video and library screens: routes to
myapp/navigations/Navigation.js - Video and library screens → HTTP service: requests data
myapp/Screens/Search.js - Video search → HTTP service: searches videos
myapp/Screens/Search.js - Channel view → HTTP service: loads channel
myapp/Screens/Channel.js - User profile → HTTP service: loads profile
myapp/Screens/Profile.js - HTTP service → HTTP routes: calls HTTP API
myapp/services/apis.js - HTTP routes → Authentication: routes auth
Server/Routes/user.routes.js - HTTP routes → User management: routes user
Server/Routes/user.routes.js - HTTP routes → Video operations: routes videos
Server/Routes/video.routes.js - HTTP routes → Channel operations: routes channels
Server/Routes/channel.routes.js - HTTP routes → Saved videos: routes saved
Server/Routes/saved.routes.js - Authentication → User records: creates and checks
Server/Controllers/authController.js - User management → User records: reads and updates
Server/Controllers/UserController.js - Video operations → Video records: queries and saves
Server/Controllers/VideoController.js - Video operations → Channel records: updates channel
Server/Controllers/VideoController.js - Video operations → User records: uses user data
Server/Controllers/VideoController.js - Video operations → Comment records: uses comments
Server/Controllers/VideoController.js - Channel operations → Channel records: reads and updates
Server/Controllers/ChannelController.js - Channel operations → User records: uses user data
Server/Controllers/ChannelController.js - Channel operations → Video records: uses video data
Server/Controllers/ChannelController.js - Channel operations → Following records: creates following
Server/Controllers/ChannelController.js - Saved videos → Saved records: manages saved
Server/Controllers/SavedController.js - Comments → Comment records: uses comments
- Following → Following records: uses following
- User records → MongoDB: persists records
- Video records → MongoDB: persists records
- Channel records → MongoDB: persists records
- Saved records → MongoDB: persists records
- Comment records → MongoDB: persists records
- Following records → MongoDB: persists records