How divesh-kumar-chordia/youtube-clone works
This MERN YouTube clone supports account access, video browsing and playback, video management, and comments. The main user journey runs through the React app to routed server endpoints and MongoDB-backed controllers. The README also describes video-file storage through Firebase, but the sampled source does not show the upload implementation or frontend API calls; those links are therefore marked unverified or omitted.
Main entry points: App.js App routing · index.js API server · User.js User records · Video.jsx Video playback
Components 25
React client
- App routing
front-end-client/src/App.js - Navigation menu
front-end-client/src/components/Menu.jsx - Video browsing
front-end-client/src/pages/Home.jsx - Video playback
front-end-client/src/pages/Video.jsx - Video cards
front-end-client/src/components/Card.jsx - Sign-in UI
front-end-client/src/pages/SignIn.jsx - Comment display
front-end-client/src/components/Comments.jsx - Comment item
front-end-client/src/components/Comment.jsx
Express API
- API server
back-end-server/index.js
Accounts and access
- Auth routes
back-end-server/routes/auth.js - Signup and sign-in
back-end-server/controllers/auth.js - User routes
back-end-server/routes/users.js - User operations
back-end-server/controllers/user.js - Token verification
back-end-server/verifyToken.js - User records
back-end-server/models/User.js
Video and comments
- Video routes
back-end-server/routes/videos.js - Video operations
back-end-server/controllers/video.js - Comment routes
back-end-server/routes/comments.js - Comment operations
back-end-server/controllers/comment.js - Video records
back-end-server/models/Video.js - Comment records
back-end-server/models/Comment.js - Video authoring
front-end-client/src/pages
Other components
- Viewer
- MongoDB
- Firebase Storage
Connections 30
- Viewer → App routing: uses
front-end-client/src/App.js - App routing → Navigation menu: renders
front-end-client/src/App.js - App routing → Video browsing: routes to
front-end-client/src/App.js - App routing → Video playback: routes to
front-end-client/src/App.js - App routing → Sign-in UI: routes to
front-end-client/src/App.js - Video browsing → Video cards: renders
front-end-client/src/pages/Home.jsx - Video playback → Comment display: renders
front-end-client/src/pages/Video.jsx - Video playback → Video cards: renders
front-end-client/src/pages/Video.jsx - Comment display → Comment item: renders
front-end-client/src/components/Comments.jsx - API server → Auth routes: mounts
back-end-server/index.js - API server → User routes: mounts
back-end-server/index.js - API server → Video routes: mounts
back-end-server/index.js - API server → Comment routes: mounts
back-end-server/index.js - Auth routes → Signup and sign-in: dispatches
back-end-server/routes/auth.js - Signup and sign-in → User records: reads and writes
back-end-server/controllers/auth.js - User routes → User operations: dispatches
back-end-server/routes/users.js - User routes → Token verification: guards
back-end-server/routes/users.js - User operations → User records: accesses
back-end-server/controllers/user.js - Video routes → Video operations: dispatches
back-end-server/routes/videos.js - Video routes → Token verification: guards
back-end-server/routes/videos.js - Video operations → Video records: reads and writes
back-end-server/controllers/video.js - Video operations → User records: reads
back-end-server/controllers/video.js - Comment routes → Comment operations: dispatches
back-end-server/routes/comments.js - API server → MongoDB: connects
back-end-server/index.js - Video records → MongoDB: stores records
back-end-server/models/Video.js - User records → MongoDB: stores records
back-end-server/models/User.js - Comment records → MongoDB: stores records
back-end-server/models/Comment.js - Viewer → Video authoring: creates videos
README.md - Video authoring → Firebase Storage: stores media
README.md - App routing → API server: uses API