Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
config
lib
public
views
README.md
app.rb
config.ru

README.md

Setup

Deployment

Sinatra Application

ruby app.rb

Rack Application

server {
   listen       80;
   server_name  localhost;
   root /www/contest_app/public;
   passenger_enabled on;
 }

CouchDB

Setup Couch View

This view returns a random record / winner from our couchDB based on the rand column in our database

function(doc) {
  if(doc._rev.charAt(0) == '1') {
    emit(doc.rand, doc);
}
Something went wrong with that request. Please try again.