ymnk / googlewave-robot-sample Goto Github PK
View Code? Open in Web Editor NEWGoogle Wave Robot Sample in Scala/Liftweb
Google Wave Robot Sample in Scala/Liftweb
Google Wave Robot Sample What is This ============ This is a sample program to demonstrate How-To implement googlewave Robot in scala/Liftweb. This program is using Liftweb, but you will find that the usage of Liftweb is not essential. You will be able to apply this sample to your favorite scala based Web Application Framework very easily. Please refer to src/main/webapp/WEB-INF/web.xml How to Try ========== 1. At present time, Googleweb has expected that robots run on GAE/J. So, you have to register your own application name at http://www.appspot.com/ . Suppose that you have registered it as "my-robot" through this How-To. This name will be used to refer to the name of your robot; [email protected] 2. Replace "????" with "my-robot" in src/main/webapp/WEB-INF/appengine-web.xml . 3. The included pom.xml expects that wave-robot-api-*.jar is stored in the repository. 1.1 Download that jar file from its download site[1], 1.2 Install that file into your repository with following command, mvn install:install-file \ -Dfile=wave-robot-api-20090916.jar \ -DgroupId=com.google.wave \ -DartifactId=wave-robot-api \ -Dversion=20090916 \ -Dpackaging=jar \ -DgeneratePom=true 4. Build the package $ mvn package 5. Deploy it! appcfg.sh update target/googlewave-robot-sample-1.0-SNAPSHOT 6. Add user '[email protected]' to your wave. This sample robot will just reply to messages from participants like a parrot. Further References ================== Please refer to following files, * src/main/webapp/WEB-INF/appengine-web.xml * src/main/webapp/WEB-INF/web.xml * src/main/scala/bootstrap/liftweb/Boot.scala You will find that the paths /_wave/* have been ignored in Liftweb. * src/main/webapp/_wave/capabilities.xml * src/main/scala/com/jcraft/wave_bot/servlet/MyRobotServlet.scala MyRobotServlet will handle googlewave Robot API events. * src/main/scala/com/jcraft/wave_bot/snippet/Wavelet.scala Demonstrating to use Googlewave Robot APIs within Liftweb. This snippet will be invoked in /index.html [1] http://code.google.com/p/wave-robot-java-client/downloads/list
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.