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, 'mongo://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

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 © 2011 Ryan Wynn. See LICENSE.txt for further details.