riak-javascript-client /

Filename Size Date modified Message
tests
51 B
9.9 KB
1.8 KB
16.9 KB
27.5 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

  [https://wiki.basho.com/display/RIAK/Client+Libraries]

2 Repositories 
~~~~~~~~~~~~~~~

  The official source code for this client can be retrieved from

  [http://github.com/basho/riak-javascript-client]

  Riak can be obtained pre-built from

  [http://downloads.basho.com/riak/]

  or as source from

  [http://github.com/basho/riak]

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
     127.0.0.1:8098, 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 127.0.0.1:8098, the
     URL for the unit tests is:
     [http://127.0.0.1:8098/riak/basho_test/tests.html].

  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

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.