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.
🐑 Ruby on Rails
🐑 React/Redux
🐑 PostgreSQL
🐑 JavaScript / AJAX / JBuilder
🐑 HTML5 / CSS
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);
}
})
}
})
}
- Search bar
- Video upload
- StackOverflow
- John F
- Jon Z
- Vern C
- Masa C
- Darrick S
- Jimmy K