Skip to content
A media aggregator for educational institutions
PHP Ruby Puppet JavaScript HTML Shell Other
Latest commit 259250d May 12, 2016 @kabel kabel Merge pull request #296 from mfairchild365/improve-cache-busting
Improve cache busting

README.md

MediaHub

MediaHub is a video/audio aggregator for educational institutions, and is currently running at http://mediahub.unl.edu/

Reasons why MediaHub might be a good idea for your institution:

  • RSS Feeds for syndication to other sites (iTunes U)
    • iTunes and iTunes U Attributes included in RSS Feeds
  • Captioning integration with Amara Universal Subtitles
  • Support for multiple users and channels
  • Complete branding control, with no external advertisements
  • Local storage
  • HTML5 video and audio support
  • Caption support on all iOS devices
  • Integrates with enterprise authentication systems
  • Web Services and APIs, including XML, JSON, partial HTML views
  • Sample scripts for importing from existing RSS Feeds

Installation

cp config.sample.php config.inc.php
cp sample.htaccess .htaccess

Database: Create a database for mediahub

mysql -u root
CREATE DATABASE mediahub;
GRANT ALL ON mediahub.* TO mediahub@localhost IDENTIFIED BY 'mediahub';
mysql -u mediahub -p mediahub < UNL_MediaHub/data/mediahub.sql

username: mediahub password: mediahub Create the database using the data/mediahub.sql

Requirements:

  • PHP 5
  • PDO Mysql

Testing:

Once installed, run this command from the project root:

php vendor/bin/phpunit --bootstrap tests/init.php tests

Cache-busting

Versioning is handled with git, so the application MUST be checkout out with git for this to work

To update the version cache (which is used for cachebusting) run php scripts/update_version.php

To automate this, git hooks can be used. symlink the sample file update-version.sh From the directory .git/hooks run the following ln -s ../../update-version.sh post-checkout You may even want to have it triggered after post-merge (git pull) ln -s ../../update-version.sh post-merge

Sources:

Something went wrong with that request. Please try again.