hwkcode / Netplex

Netplex is a picture-perfect, single-page application of Netflix, a video streaming platform.
1 stars 0 forks source link

Netplex

A picture-perfect single-page application clone of Netflix.

Start viewing here!


Overview

Netplex is a clone of Netflix, a video streaming platform, where signed up users can create profiles, watch videos, and add videos to personalized lists.

Technologies Used

Features

Featured Code Snippet

Fetching videos from "My List" for specified profile:

def show
    profile = Profile.find_by(id: current_profile.id)                      
    @lists = profile.lists.where(profile_id: current_profile.id).ids        
    @lists.map! { |id| Video.find_by(id: List.find_by(id: id).video_id)}    

    if @lists
        render :show
    else
        render json: ["No list found"]
    end
end