LSRC Contest Application
Pull request Compare This branch is even with johntdyer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
public
views
.gitignore
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);
}