riak-javascript-client /

Filename Size Date modified Message
51 B
10.2 KB
1.9 KB
17.4 KB
28.2 KB
                      Javascript Client for Riak

This is the Javascript client for Riak.

Table of Contents
1 Documentation 
2 Repositories 
3 Installation 
4 Running unit tests 

1 Documentation 

  Documentation for the Javascript library can be found in this
  README, and in the code in riak.js.

  Documentation for use of Riak clients in general can be found at


2 Repositories 

  The official source code for this client can be retrieved from


  Riak can be obtained pre-built from


  or as source from


3 Installation 

  1. Drop riak.js, json2.js, and a recent version of jQuery into a Riak bucket.

  2. Enjoy!

4 Running unit tests 

  You'll need to have curl installed in order to set up the testing environment.

  0. If your Riak server is listening on something other than, you'll need to edit tests/setup to point to the
     right host and port. The variables to edit are called, helpfully,
     HOST and PORT.

  1. To install the test environment, run the setup script in the
     tests directory with the -i option:

   cd tests;./setup -i

  2. You can now run the unit tests by pointing your browser to the
     unit test page. Assuming Riak is listening on, the
     URL for the unit tests is:

  3. You can clean out any transient test data by running the setup
     script with the -c option: cd tests;./setup -c

  4. Finally, you can remove the test environment by running setup
     again with the -u option:
   cd tests;./setup -u