14

Is there any way to run a Javascript engine, like Spidermonkey, on Google App Engine? Spidermonkey is a C module, so obviously that wont work (GAE doesn't allow those types of modules)... is there something else available?

fernandopasik
  • 9,565
  • 7
  • 48
  • 55
Nicholas Franceschina
  • 6,009
  • 6
  • 36
  • 51
  • The people who answered here seem to have a great deal of expertise. I have a very very simple problem. Might you guys help me with it? http://stackoverflow.com/questions/33192485/using-rhino-instead-of-scriptengine-to-run-javascript-code-in-java I just need to get a Date from JavaScript to Java. – learner Oct 24 '15 at 22:34

4 Answers4

8

Here is an article about running Rhino on AppEngine/Java. That should get you a long way towards a real, functioning JavaScript application on AppEngine.

Adam Crossland
  • 14,198
  • 3
  • 44
  • 54
8

If you are looking for a JavaScript framework (as opposed to calling Java methods from JavaScript) you could try RingoJS (formerly Helma NG). It's a Rhino-based JavaScript framework that can run in AppEngine.

There's also AppengineJS, which can run on RingoJS (or Narwhal, which I haven't personally used). It's a port of the Python SDK (with mostly predictable changes to fit JavaScript conventions better). It's not complete, but it's close enough to work in most cases. It's nicer to use than using the Java API directly.

antony.trupe
  • 10,640
  • 10
  • 57
  • 84
Matthew Crumley
  • 101,441
  • 24
  • 103
  • 129
3

I've also built ApeJS if you want to try it out. It's much more minimal than the competition.

Luca Matteis
  • 29,161
  • 19
  • 114
  • 169
2

Google is now supporting custom language on Google App Engine. So we can do Node.js

https://www.youtube.com/watch?v=Q8jZHc0NS6A

https://developers.google.com/cloud/managed-vms

fernandopasik
  • 9,565
  • 7
  • 48
  • 55