You must have an S3 account with a bucket available to you. You will need to add your AWS Access Token and secret to the config file.
You must have a Blitline Account ID, which you get by simply logging in to Blitline.com
You will need to be running rails 3.x for this to work, otherwise you will need to move the files from app/assets to public/
Clone this application into a directory as you would any Git repository.
git clone https://github.com/blitline-dev/blitquick.git
Open the lib/blitquick.rb file and enter the required config options:
Blitquick.configure do |config| config['aws_access_key'] = "YOUR_AWS_ACCESS_KEY" config['aws_secret_key'] = "YOUR_AWS_SECRET_KEY" config['aws_bucket'] = "YOUR_AWS_BUCKET" config['blitline_application_id'] = "YOUR_BLITLINE_ID" end
Fire up the rails app
bundle exec rails server
Open a browser and navigate to localhost:3000
These are the files that are included in this demo app
layouts application.html.erb blitquick s3_upload_completed.html.erb sample.html.erb
jquery.fileupload.js jquery.iframe-transport.js jquery.ui.widget.js output.js sample.js