Skip to content

shaunakv1/Rails-Carrierwave-S3-jQuery-File-Upload

 
 

Repository files navigation

This is a fork of orignal project by n0one which has been modified slightly to upload to amazon s3 instead of using local storage.

Rails 3.2.3 + Carrierwave + amazom s3 + jQuery File Upload

A small application that demonstrates the work of these programs together.

More information about jQuery File Upload or on Github.

We use slimbox2 plugin for viewing pictures. And we use plugin jCrop for editing pictures.

Getting Started

  • Clone git:

        git clone https://github.com/shaunakv1/Rails-Carrierwave-S3-jQuery-File-Upload.git
    
  • Change folder:

        cd Rails-Carrierwave-S3-jQuery-File-Upload
    
  • Install gems:

        bundle install
    
  • Make database:

        rake db:migrate
    
  • Upgrade bootstrap files:

        rails g bootstrap:install -f
    
  • set the following environment veriables for amazon s3 configuration :

export TRIAL_AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY_ID
export TRIAL_AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
export TRIAL_AWS_S3_BUCKET=BUCKET_NAME
  • Start server:

        rails s
    
  • Open browser:

        http://localhost:3000/galleries
    

Features

  • (20-Mar-2013): Can now add images to a gallery when it's "new" (ie. before it has been saved)

About

Rails 3.2.3 + Carrierwave + jQuery-File-Upload

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 64.1%
  • CSS 20.3%
  • JavaScript 13.7%
  • CoffeeScript 1.4%
  • Perl 0.5%