Coder Social home page Coder Social logo

cadorn / jack-servlet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tlrobinson/jack-servlet

1.0 3.0 1.0 99 KB

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

Home Page: http://jackjs.org/

JavaScript 0.93% Java 99.07%

jack-servlet's Introduction

Jack Servlet

Requirements

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

Quick Start

git clone git://github.com/280north/narwhal.git
export PATH=$PATH:narwhal/bin
tusk install jack
git clone git://github.com/tlrobinson/jack-servlet.git
cd jack-servlet
ant runserver

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"

Wildfire

You can enable wildfire support with

<servlet>
  <init-param>
    <param-name>wildfire</param-name>
    <param-value>1</param-value>
  </init-param>
</servlet>

and place the wildfire using packages into war/WEB-INF/using.

jack-servlet's People

Contributors

gozala avatar cadorn avatar kriskowal avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

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.