Skip to content

Yu-HuanWu/EweTube

Repository files navigation

EweTube

logo

Background

EweTube is the newest Ovis-themed video streaming site that allows users to share sheep-friendly videos with one another. Users create accounts as well as comment on, like, dislike videos across the site. Users will also be able to view videos liked by themselves or other users.

Technologies

🐑 Ruby on Rails

🐑 React/Redux

🐑 PostgreSQL

🐑 JavaScript / AJAX / JBuilder

🐑 HTML5 / CSS

Features

  • User account creation and login

Login

  • Post and delete comments on videos

Comment

  • Like and dislike videos, liked video is saved on user's page

Likes

This feature is possible due to a simple yet effective if-else statement:

let likedVideo = [];
if (this.props.videos.length > 0) {
    Object.values(this.props.videos).forEach(video => {
        if (this.props.likes) {
            this.props.likes.forEach(like => {
                if (like.videoId === video.id && like.numLikes === 1) {
                    likedVideo.push(video);
                }
            })
        }
    })
}
  • Video views get updated upon playing

Views

Upcoming Features

  • Search bar
  • Video upload

Special Thanks

  • StackOverflow
  • John F
  • Jon Z
  • Vern C
  • Masa C
  • Darrick S
  • Jimmy K

About

YouTube? I thought you said EweTube! Sorry my hearing has been pretty baaaaaaad~

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published