Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple "no images on your server" blitline example. Direct to S3 post and processing by blitline and javascript.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.rdoc

Blitquick

Blitquick is a simple end-to-end demo app that lets the user select a file to upload, then uploads it directly to S3. Once uploaded it runs a Blitline job on it which watermarks it, then outputs a couple thumbnails. This application only requires a few lines of ruby code and some javascript files.

Requirements

  1. 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.

  2. You must have a Blitline Account ID, which you get by simply logging in to Blitline.com

  3. 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/

Getting Started

Clone this application into a directory as you would any Git repository.

git clone https://github.com/blitline-dev/blitquick.git

Bundle Install

bundle install

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

Manifest Info

These are the files that are included in this demo app

  • Controllers:

    blitquick_controller.rb
  • Views:

    layouts
      application.html.erb
    blitquick
      s3_upload_completed.html.erb
      sample.html.erb
  • Lib

    blitquick.rb
  • Javascripts

    jquery.fileupload.js
    jquery.iframe-transport.js
    jquery.ui.widget.js
    output.js
    sample.js
  • Gems

    blitline
Something went wrong with that request. Please try again.