A Sinatra example for pushing Tropo transcription results to MongoDB on Heroku
Pull request Compare This branch is even with tropo:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
log
public/images
views
.gems
LICENSE
README.textile
config.ru
specs
tropo-results-mongodb.rb

README.textile

Tropo Transcription Results to MongoDB @ Heroku

Overview

This app provides a Web Service written with Sinatra to allow for transcriptions from Tropo to be pushed from the Tropo cloud to MongoDB collection running on Heroku.

Requirements

  • Ruby 1.8.6+
  • Gems
    • Heroku
    • Sinatra
    • Mongo
    • Crack
    • Haml
    • bson_ext (for better MongoDB performance)

Installation

First, get the app:

git clone git://github.com/voxeo/tropo-results-mongodb.git

Install the required gems:

sudo gem install sinatra heroku mongo crack haml bson_ext

Deploying to Heroku

It is possible to push this app to be hosted by Heroku. First you will need a Heroku account and the Heroku gem:

sudo gem install heroku

After you have cloned the repo from Github above, you may do the following:

cd ~/application-directory
heroku create my-app-name
git push heroku master

(More from Heroku here)

Thats it, you may now start using the URL http://my-app-name.heroku.com/transcription_results.