Skip to content

This video policy system checks the rights of  videos in a given country. Possible policies include monetize, free, and block.

Notifications You must be signed in to change notification settings

jinyk/video_policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Video Policy System

  • Ruby version

2.0.0
  • Rails version

4.0.2
  • Notable Gems

rails
mongoid
will_paginate_mongoid
  • Database

mongodb
  • My Approach

-Seeded the database with 100 videos.
-Video model was given fields of type array for free, monetize, block. The block field is indexed to make for faster queries.
-Six countries were distributed randomly throughout the policy fields
-A search form is used to filter the videos by both county and video.
-Pagination is used to make the video content more managable.
  • Views

-A single index page will cover all three requested views.
-On page load all 100 videos will be displayed (with pagination).
-A filter for countries will show all videos viewable in the selected country.
-A filter for video primary key will show an individual country along with its video policies.

About

This video policy system checks the rights of  videos in a given country. Possible policies include monetize, free, and block.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published