An open API service indexing awesome lists of open source software.

https://github.com/retro/gridfs-rackdav

GridFS resource for RackDAV
https://github.com/retro/gridfs-rackdav

Last synced: about 1 month ago
JSON representation

GridFS resource for RackDAV

Awesome Lists containing this project

README

        

---
GridFS-RackDAV - Mongo GridFS resource for RackDAV
---

## Install

GridFS-RackDAV is hosted at Gemcutter:

$ sudo gem install gemcutter
$ sudo gem tumble
$ sudo gem install gridfs-rackdav

You should also have MongoDB installed.

## Quickstart

Use simple rackup script for serving files from GridFS

@@ruby

require 'rubygems'
require 'rack_dav'
require 'gridfs-rackdav'

connection = Mongo::Connection.new('localhost').db('name-of-your-db')

use Rack::CommonLogger

run RackDAV::Handler.new({
:root => 'root_of_collection',
:connection => connection,
:resource_class => GridFSRackDAV::GridFSResource
})

## Specs

GridFS-RackDAV resource passes all of original specs that are included with RackDAV project.

## Copyright

Copyright (c) 2009 Mihael Konjević. See LICENSE for details.