Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example Luwak-external App
Erlang Shell
Tree: dc778be126

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
apps/luwakapp/src
rel
.gitignore
README.md
rebar.config

README.md

Luwakapp is a demonstration of the external luwak branch, which uses the Riak Erlang client to communicate with Riak over Protocol Buffers, instead of expecting code to run on a Riak node. The app exposes the same HTTP interface that Riak used to expose itself.

Prereqs

You'll need Riak and Erlang R14B installed. You'll also need rebar.

Setup & Run

Clone this repo:

git clone git://github.com/beerriot/luwakapp

Build the app:

cd luwakapp
rebar get-deps compile generate

Edit your config. In rel/luwak/etc/, you'll find sys.config. Change the riak_ip and riak_port settings to point to one of your Riak nodes (default 127.0.0.1:8087). Also change the http and/or prefix settings if you want the interface exposed somewhere other than http://localhost:8080/luwak/.

Start the app:

rel/luwak/bin/luwak console

(or use start instead of console, if you'd like it to run in the background).

Use

Interacting with this app should be exactly as described on the Luwak wiki page.

Something went wrong with that request. Please try again.