{"id":19063246,"url":"https://github.com/delner/minitube","last_synced_at":"2025-10-11T19:33:29.101Z","repository":{"id":7320055,"uuid":"8638731","full_name":"delner/minitube","owner":"delner","description":"A RoR web-service demo.","archived":false,"fork":false,"pushed_at":"2013-03-10T16:51:08.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T02:41:16.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/delner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-07T23:14:28.000Z","updated_at":"2014-12-19T21:21:46.000Z","dependencies_parsed_at":"2022-08-24T22:12:19.996Z","dependency_job_id":null,"html_url":"https://github.com/delner/minitube","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/delner/minitube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delner%2Fminitube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delner%2Fminitube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delner%2Fminitube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delner%2Fminitube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delner","download_url":"https://codeload.github.com/delner/minitube/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delner%2Fminitube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008424,"owners_count":26084460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T00:29:22.742Z","updated_at":"2025-10-11T19:33:29.086Z","avatar_url":"https://github.com/delner.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"MiniTube\n========\n\nA Ruby on Rails web-service demo. It acts as a service that describes videos, and their viewing policy per region. The business question it seeks to address is something like *\"How should I display this video in the United States? With ads? For free? Is it blocked due to copyright?\"*\n\nRequirements\n------------\nMiniTube runs on Ruby on Rails 3.2: you must have Ruby 1.9.3 installed, along with Memcached \u0026 MySQL.\n\nTechnical details\n-----------------\nThe finer explanation of how it works is detailed in this technical specification Google Doc:\n\nhttps://docs.google.com/document/d/1AQ-ZVj9G5V2iBjWi6FBX_3CSmvPJ4Bz9DFlvxNR5oEk/edit?usp=sharing\n\nHow to run it\n-------------\n 1. Clone the repository locally.\n 2. Run `bundle install` in the project directory to install the necessary gems.\n 3. Create a `database.yml` file in your `config` directory that points to your MySQL server.\n 4. Run `rake db:create` and `rake db:migrate` to setup your database\n 5. Run `rake db:seed` to generate some test data to work with.\n  - You can adust the amount of test data generated by changing the `stress_level` variable in the seed file.\n 6. Make sure your memcached server is running locally, then run `rails s` to start the service.\n\n*NOTE:* In its current state, the service isn't very configurable. It depends on a locally running Memcached server, and certain variables are hard-coded. (Configurability is a work in progress!)\n\nQuerying the service:\n---------------------\nThere are 3 views included in the service:\n - `/policies`: Returns all policies for all videos in all regions.\n - `/policies/available/\u003ccountry\u003e`: Returns all policies for videos who are not blocked in the specified country. `country` is a case-sensitive ISO code (http://en.wikipedia.org/wiki/ISO_3166-1)\n - `/policies/video/\u003cvideo_id\u003e/country/\u003ccountry\u003e`: Returns the policy for a single video in a single region. `country` is the same as above. `video_id` is a 1-8 character ID potentially consisting of numbers, letters or symbols (case-sensitive.)\n\nSee the demo:\n-------------\nThe demo of this application is available at http://demo.davidelner.com\n\nViews:\n - http://demo.davidelner.com/policies\n - http://demo.davidelner.com/policies/available/US\n - http://demo.davidelner.com/policies/video/15/country/US\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelner%2Fminitube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelner%2Fminitube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelner%2Fminitube/lists"}