git clone <repository-url>
this repository- change directory
cd cinema-app
- run
bundle install
- create .env file (copy .env.sample)
- create /app/config/config.yml (copy config.yml.sample)
- change directory
cd cinema-app
mkdir app/public/videos
- copy all video files to new "videos folder"
- it is recommented to use the mp4 (h264) codec - Youtube Standard (same for audio)
- https://support.google.com/youtube/answer/1722171?hl=de
- change directory
cd cinema-app
- run
foreman start
in cinema-app directory to start the server - Local Host: it is recommented to use Linux
- Browser: it is recommented to play the video files via google chrome (100% compatible with the "mp4 (h264) - Youtube Standard")
- run
rake
for the tests
Host your own cinema server and watch together with friends remotely! Recommended setup is server hosting on Heroku and file hosting on ownCloud.
- Upload your video files to ownCloud and generate sharable links
- Change video file keys within your config file to shared hash keys (Note: currently only ownCloud hosting supported)
- Set
remote_url
key in config file to your ownCloud domain - Upload your config file somewhere online (e.g. ownCloud or Dropbox)
- Deploy your server code. Heroku is recommended :) Just connect a new app with your GitHub repo and Heroku takes care of the rest ;)
- Set environment variables on your server application in Heroku:
- set env
CONFIG_FILE
to<url-to-config-file>
- set env
RACK_ENV
toproduction
- set env
- Have fun!