All Projects → thoughtbot → paperclip_demo

thoughtbot / paperclip_demo

Licence: other
Paperclip demo application

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Paperclip Demo

Deprecated

Paperclip is deprecated.

Reference Application

Paperclip Demo Application

Application allows users to manage a list of “friends” using a basic Rails scaffold. Each friend will have a Name and Avatar. Paperclip will provide the image upload and resizing functionality. The app will demonstrate how to create different sized thumbnails, display resized images on different screens, and gracefully degrade to display missing avatars “missing.png” for friends without an avatar.

Install Codebase

Clone the git repository

$ git clone [email protected]:thoughtbot/paperclip_demo.git
$ cd paperclip_demo
$ bundle

Create database and run migrations

$ rake db:create db:migrate

Run the rails server

$ rails s

View Application

From a web browser access the site via localhost:3000

Deploy the application to Heroku

Create an application container on Heroku

$ heroku create

Push the code to the Heroku container

$ git push heroku master

Run any database migrations

$ heroku rake db:migrate

Set the AWS S3 config vars

$ heroku config:add AWS_BUCKET=your_bucket_name
$ heroku config:add AWS_ACCESS_KEY_ID=your_access_key_id
$ heroku config:add AWS_SECRET_ACCESS_KEY=your_secret_access_key

Now view your Heroku application

$ heroku open

Test suite

RSpec and Capybara used for Integration and Unit tests

$ rspec

Credits

thoughtbot

Paperclip Demo is maintained by thoughtbot, inc

The names and logos for thoughtbot are trademarks of thoughtbot, inc.

License

Trail Map is licensed under the Creative Commons Attribution License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].