http interface to rugroupy
Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/rugroupy
test
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
rugroupy-server.gemspec

README.rdoc

rugroupy-server

rugroupy-server is a sinatra based server allowing one to interact with the rugroupy library over http.

Features

* requests and responses use JSON
* GET, PUT, DELETE /entity to retrieve, create, or delete entities
* PUT, DELETE /entity/tags to tag or untag entities
* GET /entity/similiar to find entities similiar to a given entity sorted by score
* GET, POST /group to retrieve most similiar entities or initiate a grouping request

Usage

Extend Groupy::GroupyServer to configure mongo and other settings and then run it

require 'rugroupy/server'
class MyApp < Groupy::GroupyServer 
  register Sinatra::MongoExtension
  set :mongo, 'mongodb://localhost:27017/mongo_database_name'
  # optionally set more things (port, etc.) according to http://www.sinatrarb.com/configuration.html
end
MyApp.run!

Examples

See github.com/rwynn/rugroupy-server/tree/master/test for example input/output to and from the server

Requirements

Install

  • sudo gem install rugroupy-server

Install from the GitHub source

The source code is available at github.com/rwynn/rugroupy-server. You can either clone the git repository or download a tarball or zip file. Once you have the source, you can use it from wherever you downloaded it or you can install it as a gem from the source by typing

  • sudo rake install

Contributing to rugroupy-server

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright © 2011 Ryan Wynn. See LICENSE.txt for further details.