Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Photoblog, quick and easy

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 vendor
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
Octocat-spinner-32 main.rb
Octocat-spinner-32 todo.txt
README.rdoc

Snapped, a quick photoblog

Overview

Snapped is a quick photoblog to quickly place Flickr photos on a pedestal. I use Snapped: snapped.bjhess.com

Think of it as the first iteration of your photoblog. There's so little code, you can adapt it to your purpose like easy.

Features

Snapped makes posting photos a breeze. Take the URL to any Flickr photo page and paste it in, click submit and you have a new post.

The tech:

  • Flickr as a backend

  • Markdown for descriptions

  • Atom feed

  • Sinatra

  • MongoDB with MongoMapper

  • Easy deployment via Heroku + MongoHQ

Dependencies

You gotta have MongoDB installed locally, son. You gotta sign up for a free Heroku account and install the free MongoHQ addon. Bundler should get all the gems for you.

Setup

Edit main.rb and change the Blog config struct at the top as needed. Change the admin password and the admin cookie key and value. Just set them to any random value you'd like.

Flickr API keys can be generated here: www.flickr.com/services/api/keys

You've installed and started MongoDB, right? Homebrew is your friend: github.com/mxcl/homebrew

Bundler:

$ bundle install

Run the server:

$ ruby main.rb

And visit: localhost:4567/auth

Log in with the password you selected, then click Get Snappin'. Go ahead and paste a Flickr URL in and watch Snapped do the rest.

Database

MongoDB is really excellent. Once you have it running locally, it should Just Work™. And for deployment to Heroku, MongoHQ is also a snap to setup:

docs.heroku.com/mongohq

Deployment

Things you might need to know if you're not familiar with Heroku:

Credits

Created by Barry Hess

Snapped is heavily influenced by the blogging software, Scanty (github.com/adamwiggins/scanty). In fact, this project was started with Scanty and then heavily modified to become Snapped.

Much props also to photoblog: github.com/dannyw/photoblog

Copyright © 2011 Barry Hess. Released under the MIT license: www.opensource.org/licenses/mit-license.php

github.com/bjhess/snapped

bjhess.com

Something went wrong with that request. Please try again.