Skip to content

Demo of calling Javascript functions in a Python environment on Google App Engine.

Notifications You must be signed in to change notification settings

stucox/JS-on-GAE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS-on-GAE

DEMO ON APPSPOT

This is a quick demo of Javascript code being shared between server and client, using pyjon to evaluate Javascript in a Python environment with Django on Google App Engine.

Enter some numbers then click the relevant button to either evaluate it on the server or in your browser. The adding function is only defined once, in shared-functions.js, which is read and evaluated by the server, as well as being served to the browser.

Obviously this is massive overkill for adding two numbers(!), but the concept could be applied to more complex calculations, operations on objects, etc, such that common logic only needs to be defined once.

About

Demo of calling Javascript functions in a Python environment on Google App Engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •