A backend software, self-hostable and ready to use to power modern apps.
You can access the Kuzzle repository on Github
The complete SDK documentation is available here
The LUA SDK implements the websocket protocol.
You need the liblua5.3-dev.
Execute the following snippet to clone the GIT repository, and build the SDK. It will then be available in the "build/" directory
git clone --recursive [email protected]:kuzzleio/sdk-lua.git
git submodule update --init --recursive
cd sdk-lua
make
require('kuzzlesdk');
kuzzle = kuzzlesdk.Kuzzle("localhost");
-- connect
kuzzle:connect();
-- get Kuzzle timestamp
timestamp = kuzzle.server:now();
print(timestamp);
-- Create an index
kuzzle.index:create("index");
-- Create a collection in the index
kuzzle.collection:create("index", "collection")
-- Create a document in the collection
res = kuzzle.document:create("index", "collection", "", "{\"name\": \"Joe\"}");
-- Print the json response
print(res);
-- Disconnect from Kuzzle
kuzzle:disconnect();