Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Barebones Instagram realtime endpoint for posting images to a chat service (Campfire).
Ruby
Branch: master

Merge pull request #2 from alindeman/ssl

Use protocol-relative URLs to avoid jQuery errors when loading over SSL
latest commit ce5dfd01fc
@technoweenie authored
Failed to load latest commit information.
lib
test add Model#remove
.gitignore
.rvmrc any ruby 1.9.2 should be fine
Gemfile
Gemfile.lock update setup tasks
LICENSE
README.md
Rakefile
chat_gram.gemspec add basic user ui
chat_gram.rb print the model instance so you can see what db is being used
config.ru remove the last instance of the old InstagramCampfireHook name.

README.md

ChatGram

ChatGram is a barebones Instagram realtime endpoint for posting images to a chat service. With it, you can...

  • See when friends post pics -- in RealTime (tm)!

  • Search for recent Instagrams in a given lat/long!

    (Note: This requires custom location search => lat/long coordinates integration).

Installation

  1. Clone the repo from GitHub.
  2. bundle install --binstubs to load the right dependencies.
  3. bin/rake chatgram:setup to create the database.
  4. bin/rackup config.ru to start the server.

See chat_gram.rb for the env variables.

If you don't want to use Bundler or Rubygems, you can require chat_gram/app manually and start it up like any other Rack application. Booya.

Deployment

ChatGram is designed to be deployed on Heroku. That means, config files are replaced with environment variables. See ./chat_gram.rb for the expected environment variables.

Customizing

I tried to make the basic pieces as abstract as possible. You should be able to write custom chat service endpoints, or store your data in CouchDB...

Chat Services

The only service supported currently is Campfire.

Data Store

The data store has a simple API and can basically support anything. Only basic DB support is included.

TODO

  • Document startup env vars better
  • Add yaml config file support.
  • Finish Admin UI.
  • Come up with a clever way to load other chat services or data stores.
  • Bundle into a gem.
Something went wrong with that request. Please try again.