Home Pictures of 3D objects

Running locally

When internet access is missing or poor, you may find it useful to run locally, independent of the internet. Here are the steps required.

* Install Python 2.7 (python.org).

* Install the Google App Engine SDK for Python.
At developers.google.com/appengine/downloads, download the package for your platform. If using Linux, unpack to a folder whose name will probably be google_appengine.

* Download the GlowScript source files.
At github.com/BruceSherwood/glowscript, click on "Download ZIP". After the download, unpack the zip file into a new folder named glowscript. On Linux, place this folder parallel to the google_appengine folder.

* On Windows and Mac, the Google App Engine installer includes an app "Google APP Engine Launcher" which simplifies launching GlowScript.

On Windows, there will be a Google App Engine Launcher icon on your desktop, or in your Start menu. Run the app.

On Mac, drag the GoogleAppEngineLauncher out of the installer package (for example, drag it into the Applications folder), then double-click it. When asked, accept the offer to create some symlinks.

In the Launcher, choose File > Add Existing Application and specify the glowscript folder. Make a note of the Port number. Click Add. In ide/api.py and untrusted/run.js, search for "localhost:" and adjust the port number to the number assigned by the launcher.

Click "glowscript", then click the green Run button. When the green Browse button lights up, click it, which will run your standard browser (which should be Chrome for best error reporting).

Click Sign in, then click Login and use the name "test". You may have to reload the web page to get through this, but you should now be able to work.
You will need to copy programs manually to glowscript.org (just copy and paste).

* On Ubuntu, in a terminal cd to the google_appengine folder and execute
python dev_appserver.py ../glowscript

Next open a browser, preferably an up-to-date version of Chrome (which gives the best error reporting).

Enter as a URL "localhost:8080"

Click Sign in, then click Login and use the name "test". You may have to reload the web page to get through this, but you should now be able to work.
You will need to copy programs manually to glowscript.org (just copy and paste).

 

Top of page