Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rendez-vous server for Mobile Clients
Haskell Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
test
.gitignore
LICENSE.txt
README.md
repl
rump.cabal
run-tests.sh

README.md

Rump

Rump is a location-based rendez-vous server for mobile clients, inspired by Bump. Rump matches meeting request by grouping incoming requests within 3 seconds in 1000 meter distance.

Installation

Install Haskell Platform

Clone, build, install:

git clone git@github.com:raimohanska/rump.git
cd rump
cabal install

Run:

rump --port 9876

Test:

$ curl -d '{ "userId" : "john", "displayName" : "John Kennedy", "location": { "latitude": 51.0, "longitude": -0.1}}' localhost:9876/lol

[{"userId":"john","displayName":"John Kennedy","location":{"latitude":51,"longitude":-0.1}}]

Protocol

POST /yourservicenamehere

Request payload:

 : { 
  "userId" : "jack", 
  "displayName" : "Jack Bauer", 
  "location": {
    "latitude":60.1687461,
    "longitude":24.9409696
  }
}

Response (if no match) :

 []

Response (with matches):

[
  { "userId" : "john", "displayName" : "John Kennedy", ... }
  { "userId" : "jack", "displayName" : "Jack Bauer", ... }
]

Test suite

Rump has a simple test suite that starts the server and does some test requests to ensure that it works correctly. The easiest way to run the test is to use the script run-tests.sh.

Something went wrong with that request. Please try again.