0.0
No release in over 3 years
Low commit activity in last 3 years
a library which uses the map-reduce capabilities of mongodb to group entities based on tags.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
>= 0
>= 0
 Project Readme

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