A Node.js client for Sling
In order to run this Sling client you will need Node.js and npm.
Once you have Node.js and npm you can clone this repository.
> git clone git@github.com:gangverk/sling-client-node.git
Then it's just a matter of installing the dependencies.
> cd sling-client-node
> npm install
From the sling-client-node
directory run the following command. You will need to use valid credentials in the basic.coffee
example script.
> ./node_modules/coffee-script/bin/coffee examples/basic.coffee
By default the client will connect to the Sling production environment. This behaviour can be overridden by setting SLING_NODE_API_HOST
and SLING_NODE_WSS_URL
environment variables.