A node.js powered Photo Gallery
- A Heroku account
- An Amazon AWS account
- Your Amazon AWS Access Key and Secret Key
- An Amazon S3 bucket, for storing the images
- An Amazon SQS queue, for the thumbnail daemon
- A deployed copy of thumbd (the thumbnail daemon)
Add the MongoDB addon:
heroku addons:add mongohq:sandbox
Configure Heroku:
heroku config:set AWS_ACCESS_KEY_ID=secret \
AWS_SECRET_ACCESS_KEY=secret \
AWS_REGION=us-east-1 \
AWS_SQS_QUEUE=https://sqs.us-east-1.amazonaws.com/12345/abcdef
MAX_UPLOAD_SIZE=10485760 \
NODE_ENV="production" \
PLACEHOLDER_IMAGE_URL=https://example.com/placeholder.png \
S3_BUCKET_NAME=my-gif-bucket \
SESSION_SECRET="super-random-secret"