A simple Guestbook as an example of a JSGI Web Application powered by appenginejs.
Setup the application:
$ export APPENGINE_JAVA_SDK=/path/to/appengine/sdk
$ export GIT_BIN_DIR=/path/to/git/bin/directory
or create a build.properties file with the following contents:
sdk.dir=/path/to/appengine/sdk
git.dir=/path/to/git/bin/directory
initialize the library dependencies:
$ ant init
start the dev server:
$ ant runserver
and browse to http://localhost:8080/
If you have problems with the included jsgi.jar, use the ant file java/build.xml to compile a new jar for your system. If you still need help, post a message to the AppengineJS Group at http://groups.google.com/group/appenginejs.
To deploy to App Engine:
$ /path/to/appengine/sdk/bin/appcfg.sh --email=your.email@account.com update war/
Before deploying you may want to remove excess files from packages. You need to keep the following files:
example/war/WEB-INF/packages/appengine/lib
example/war/WEB-INF/packages/appengine/package.json
example/war/WEB-INF/packages/jack/lib
example/war/WEB-INF/packages/jack/package.json
example/war/WEB-INF/packages/narwhal/engines/default
example/war/WEB-INF/packages/narwhal/engines/rhino
example/war/WEB-INF/packages/narwhal/lib
example/war/WEB-INF/packages/narwhal/local.json
example/war/WEB-INF/packages/narwhal/narwhal.conf
example/war/WEB-INF/packages/narwhal/narwhal.js
example/war/WEB-INF/packages/narwhal/package.json
For questions regarding this example or appenginejs please post to the mailing list: http://groups.google.com/group/appenginejs