The Flurfunk server is written in Clojure, and built using Leiningen. It provides a REST API for use by clients.
curl -O https://raw.github.com/technomancy/leiningen/preview/bin/lein
chmod +x lein
mv lein ~/bin/ # Make sure that ~/bin/ exists and is on the $PATH
lein test
lein ring server-headless
lein ring uberwar flurfunk-server.war
This will create target/flurfunk-server.war.
lein uberjar
java -jar target/flurfunk-server.jar
Messages are per default stored in memory. For a persistent database, install fleetdb:
mkdir temp
cd temp
curl -O http://fleetdb.s3.amazonaws.com/fleetdb-standalone.jar
Then launch the fleetdb server:
scripts/fleetdb-flurfunk
where flurfunk.fdb is a pure text file where stuff will be stored.
Finally, run the server with the flurfunk.fleetdb system property set to true, like this:
JAVA_OPTS="-Dflurfunk.fleetdb=true" lein ring server-headless
Copyright 2012 Viaboxx GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.