Skip to content

Reckz69/Project-0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

49 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Project X | Full-Stack Video Streaming Platform

Version License Maintained

Project X is a high-performance, scalable video streaming platform built with the MERN stack. It features an advanced search engine, real-time view tracking, and a professional-grade studio dashboard for creators.


πŸ—οΈ System Architecture & Workflow

Project X follows a decoupled client-server architecture with an emphasis on Atomic Operations and Aggregation Pipelines for data integrity.

πŸ”„ The Video Streaming Workflow

  1. Upload Phase: Videos are processed via Multer and stored in Cloudinary. Metadata (Duration, Format, Title) is extracted and saved to MongoDB.
  2. Search Phase: A unified search controller uses MongoDB $regex and $lookup to search across both Video Titles and Creator Profiles simultaneously.
  3. Playback & View Sync: When a video is played, the frontend triggers an atomic $inc operation on the backend, ensuring views are counted uniquely per user.

πŸš€ Key Features

  • Dual-Core Search: Find videos and creators in a single search bar with real-time dropdown suggestions.
  • Smart Theater: High-end video player with auto-play, custom controls, and responsive layout.
  • Creator Studio: Advanced dashboard for managing uploads, toggling public/private status, and tracking performance.
  • Public Profiles: Dynamic creator pages allowing users to browse content from their favorite uploaders.
  • Secure Auth: JWT-based authentication with Access and Refresh tokens stored in HTTP-only cookies.

πŸ› οΈ Tech Stack

Frontend

  • React.js (Vite): Fast, modern UI development.
  • Tailwind CSS: Utility-first styling with custom "Prism" glassmorphism effects.
  • Framer Motion: Smooth layout transitions and interactive animations.
  • Lucide React: Beautiful, consistent iconography.

Backend

  • Node.js & Express: Robust server-side logic and RESTful API.
  • MongoDB & Mongoose: NoSQL database with complex aggregation pipelines for data fetching.
  • Cloudinary: Cloud storage for optimized video delivery and thumbnail generation.
  • Multer: Middleware for handling multipart/form-data uploads.

πŸ“‚ Project Structure

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ controllers/   # Business logic (Video, User, Search)
β”‚   β”‚   β”œβ”€β”€ models/        # MongoDB Schemas (Video, User, View)
β”‚   β”‚   β”œβ”€β”€ routes/        # Express API endpoints
β”‚   β”‚   β”œβ”€β”€ middlewares/   # JWT Verify, Multer, Error handling
β”‚   β”‚   └── app.js         # Express configuration
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/    # Reusable UI elements (Navbar, Card)
β”‚   β”‚   β”œβ”€β”€ pages/         # SearchPage, WatchVideo, Dashboard
β”‚   β”‚   β”œβ”€β”€ context/      # AuthContext, ThemeContext
β”‚   β”‚   └── api/           # Axios instance and API calls

About

πŸš€ A production-grade Video Hosting Backend built with Node.js & MongoDB. Features secure JWT auth, complex Aggregation Pipelines for analytics, and Cloudinary media integration. 42+ battle-tested endpoints.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages