Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server side javascript on Google app engine

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?

like image 625
Nick Franceschina Avatar asked Jul 11 '10 19:07

Nick Franceschina


People also ask

What are the programming supports of Google App Engine?

Several programming languages. GAE supports a number of languages, including GO, PHP, Java, Python, NodeJS, . NET and Ruby. It also supports custom runtimes.

What is App Engine node JS?

App Engine applications automatically scale based on incoming traffic. load balancing, microservices, authorization, SQL and NoSQL databases, Memcache, traffic splitting, logging, search, versioning, roll out and roll backs, and security scanning are all supported natively and are highly customizable.

Is Google App Engine deprecated?

In Google I/O 2011, Google announced App Engine Backends, which are allowed to run continuously, and consume more memory. The Backend API was deprecated as of March 13, 2014 in favor of the Modules API.


2 Answers

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.

like image 124
Adam Crossland Avatar answered Sep 29 '22 23:09

Adam Crossland


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.

like image 27
Matthew Crumley Avatar answered Sep 29 '22 23:09

Matthew Crumley