Project

justpics

0.0
No commit activity in last 3 years
No release in over 3 years
Simple image serving. Without trying to be too clever.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Just Pics

Really simple image hosting.

Your own personal TwitPic, on Heroku & S3.

It's designed to be simple and highly cacheable. All images are served with long expiry times, and as all URLs are based on the SHA of the image, their content should never change.

Prerequisites

  • An Amazon S3 Bucket

Setup

git clone git@github.com:cwninja/justpics.git
cd justpics
heroku create
git push heroku
heroku config:add \
  AMAZON_ACCESS_KEY_ID=YourAmazonAccessKeyId \
  AMAZON_SECRET_ACCESS_KEY=YourAmazonAccessKey \
  AMAZON_S3_BUCKET=YourAmazonS3BucketName \
  JUSTPICS_MINIMUM_KEY_LENGTH=6 \
  JUSTPICS_POST_PATH=/
heroku open

You can then configure the Heroku app with a custom domain as per usual. If you wan't shorter URLs or a custom (secret) upload path, just tweak the Heroku config.

iPhone Twitter Client Setup

In the advanced settings, simply change your image service to your upload URL (in the example setup above it's the root of your app).

Costs

You should only be billed for the storage costs, as all access in and out of S3 is via the Heroku app, which is hosted inside the AWS platform.

This seems to be how it's worked out for me, your costs may vary, keep an eye on your bill.

Licence

Copyright Tom Lea. Licensed under the WTFBPPL.