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
- Host: GitHub
- URL: https://github.com/retro/gridfs-rackdav
- Owner: retro
- License: mit
- Created: 2009-11-17T16:56:52.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-11-17T22:19:42.000Z (over 15 years ago)
- Last Synced: 2025-05-05T01:06:32.537Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 79.1 KB
- Stars: 18
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-rackdavYou 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.