Search code examples
ibm-sbtibm-connections

Using the JS SBT Librarys without running the SBTSDK on a Server


can the JavaScript librarys from the SBTSDK used standalone without running the SBTSDK on a server? So that i can just include local js files from the sbt and use the APIs. Is this possible?

Thanks.


Solution

  • because of cross origin domain restriction on a browser you won't be able to do that

    there are two minimal Ajax proxies included in the toolkit, which doesn't require to deploy the full SBTSDK to a server.

    this is the java based proxy https://github.com/OpenNTF/SocialSDK/tree/master/sdk/com.ibm.sbt.proxy.web

    this is the php based proxy https://github.com/OpenNTF/SocialSDK/tree/master/php/php-core

    relevant documentation for PHP deployment https://github.com/OpenNTF/SocialSDK/wiki/Introducing-the-SBT-PHP-Core - the java proxy is configured as other part of the SDK using managed-beans.xml and the sbt.properties files.