An HTML5 drag&drop media uploader application for weplay.com
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
public
spec
views
.gitignore
Gemfile
Gemfile.lock
README.markdown
Rakefile
TODO
app.rb
config.ru

README.markdown

Weplay DropIt

DropIt is an HTML5 drag&drop uploader application for loading media to galleries on weplay.com

About

DropIt was developed to leverage modern browser capabilities to serve as an alternative to the Flash-based third party uploader provided by Kaltura. The front-end logic is built on jQuery, Underscore, Backbone and uses native File API and Drag and Drop events to interface with the desktop and trigger the upload process. The server is written in Ruby using the Sinatra web framework. It currently uses Redis to store access tokens needed for OAuth authentication with the Weplay API.

Running Locally

DropIt can be run locally by configuring the environment to interface with the Weplay app running on a local or remote server. Clone the repo. Install the bundles. Copy of environment.yml.example to an environment.yml file. Update environment.yml with a consumer_key and consumer_secret generated by registering an application with the target Weplay app: http://www.localhost.com/oauth_clients or http://www.weplay.com/oauth_clients. Execute the top level app.rb file to run the server.

git clone git@github.com:rossta/dropit.git
cd dropit
bundle install
mv config/environment.yml.example config/environment.yml # and update consumer_key, consumer_secret, site

bundle exec ruby app.rb

Tests

rake          # runs all specs
rake spec     # run RSpec specs
rake jasmine  # run Jasmine specs