Giter VIP home page Giter VIP logo

googlewave-robot-sample's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.