Skip to content

tino-junge/cinema-app

Repository files navigation

cinema-app

Setup

  • 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)

Create video and sound files

Running

  • 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")

Test

  • run rake for the tests

Deployment

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 to production
  • Have fun!