Permalink
Browse files

Created a simple Sinatra app to play with the GridFS middleware.

  • Loading branch information...
1 parent 7015824 commit d3227beea9504eda118690eead2f727c4d912068 @skinandbones committed Sep 21, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 example/gridfs_server.rb
View
9 example/gridfs_server.rb
@@ -0,0 +1,9 @@
+require 'rubygems'
+require 'sinatra'
+
+require File.join(File.dirname(__FILE__), '..', 'lib', 'rack', 'gridfs')
+use Rack::GridFS, :hostname => 'localhost', :port => 27017, :database => 'test', :prefix => 'gridfs'
+
+get /.*/ do
+ "Whatchya talking about?"
+end

0 comments on commit d3227be

Please sign in to comment.