Skip to content

johntdyer/ar_drone_contest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);
}

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.0%
  • Ruby 14.0%