A Laravel application to provide "second screen" real-time captions for a specific audio/video installation. Tune is used as a central location to store and serve captions in a browser, but receives timing for those captions from a source via REST PATCH
requests.
Run a local development environment using the Laravel Homestead virtual machine, or see the framework installation guide.
- Clone the repository.
git clone https://github.com/ericpugh/tune.git
- From the application root directory run
composer install
andnpm install
to install dependencies. - Copy the .env.example file to .env and enter your own database name, host, and credentials.
- Ensure the storage, bootstrap/cache folder is writable by the web server.
- In the application root, run
php artisan migrate
to update the database. - Set the web root on your server to point to the Tune public folder. For example, an NGINX config:
server {
listen 80;
root /var/www/tune/public;
index index.php index.html index.htm;
}