This is a fork of orignal project by n0one which has been modified slightly to upload to amazon s3 instead of using local storage.
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.
-
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
- (20-Mar-2013): Can now add images to a gallery when it's "new" (ie. before it has been saved)