Skip to content

kriskowal/jack-servlet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jack Servlet

Requirements

  1. Narwhal: http://github.com/tlrobinson/narwhal
  2. Jack: http://github.com/tlrobinson/jack

AppEngine Instructions

  1. Set the APPENGINE_JAVA_SDK environment variable to the location of the AppEngine SDK (http://code.google.com/appengine/downloads.html), or change the "sdk.dir" property in the build.xml file.
  2. Ensure "war/WEB-INF/narwhal" is a Narwhal distribution (currently symlinked to "narwhal" in the parent directory) and "war/WEB-INF/narwhal/packages/jack" is a Jack distribution.
  3. Place your Jack application in "war/WEB-INF" with the main module called "jackconfig.js", which exports the main Jack application as "app".
  4. "ant runserver" to run locally.
  5. Edit the AppEngine application ID in "war/WEB-INF/appengine-web.xml".
  6. "ant update" to deploy.

Other Servlet Container Instructions

Coming soon.

Notes

  • You can change the default modules path, module name, application name, environment name using the "modulesPath", "module", "app", and "environment" init-params in web.xml, i.e.:

    jack org.jackjs.JackServlet modulesPath WEB-INF module jackconfig.js app app environment production
  • In addition to the "war/WEB-INF/narwhal" symlink, there are relative symlinks to Rhino in "war/WEB-INF/lib/js.jar" and an example application at "war/WEB-INF/jackconfig.js"

About

A servlet for running JSGI / Jack compatible server-side JavaScript applications and frameworks on Google AppEngine for Java or other servlet containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.8%
  • JavaScript 1.2%