This is the instructions for running your WIAB as well as your own gadget serrver server (Shindig). These instructions uses the Apache Tomcat version of Shindig.
Note | ||
---|---|---|
| ||
Currently gadgets does not work on Firefox 3.x |
Download Shindig distribution from https://shindig.apache.org/download.html - make sure do download the war file and not jars.
Code Block language bash wget http://www.apache.org/dist/shindig/2.5.2/shindig-server-2.5.2.war
- Extract the war and edit the file Install Shindig by following the instructions at Shindig Installation Instructions Edit the file
containersWEB-INF/classes/containers/default/
Addcontainer.js
- add "wave" to "gadgets.container" property.
"gadgets.container" : "default", "accel", "wave",
- Wave doesn't use the security token (st), so you have to set shindig not to require it. Add the line:
"render_token_required" : false,
- Restart Shindig (i.e. The server hosting it - Tomcat)
The easiest way to run shindig is by using jetty-runner.
Code Block wget http://repo2.maven.org/maven2/org/mortbay/jetty/jetty-runner/8.1.9.v20130131/jetty-runner-8.1.9.v20130131.jar
Run the Shindig application war with:
Code Block language bash java -jar jetty-runner-8.1.9.v20130131.jar shindig-server-2.5.2
Please note that you can specify either folder of extracted war or the war file itself. The gadget server will start on localhost:8080
- Get WIABGet WIAB, but don't start the server yet
Edit server.config and add the following:
Code Block none none gadget_server_hostname=<the server host name of shindig> gadget_server_port=8080
...