This is a Google App Engine app.
You must have the Google App Engine SDK for Python installed locally. During setup, be sure to select the option to create symbolic links to the Python utilities so that they are available from the command line.
- This project uses the UW eScience Raco project. We have configured it as a submodule. After cloning this repository, you must run:
git submodule init
git submodule updateThen setup the module as described in the [Raco README](https://github.com/uwescience/raco/blob/master/README.md).
- The PLY library used to parse programs in the Myria language uses a precompiled
parsetab.pyin theracosubmodule. This file is not required, but dramatically speeds up the parser load time (which happens for every request to the app). To generate it, run
scripts/myrial examples/reachable.mylin the raco subdirectory.
- Launch the local App Engine emulator. I prefer to use Google's
GoogleApp EngineLauncherapplication (installed with the SDK), which provides a nice GUI interface to control the emulator. From the menu select Add Existing Application, and add themyria-web/appenginedirectory.
Alternatively, from the command line, you may launch:
dev_appserver.py /path/to/myria-web/appengineAnd then point your browser at localhost:8080 to view the application.
To change the Myria instance from the default (vega), modify appengine/myria_web_main.py, changing the hostname and port variables. Changes will reflect automatically in the GAE application at localhost:8080.
There are two notable branches in the myria-web repository: master and production.
masteris the latest development codeproductionis the code currently running the web interface on https://demo.myria.cs.washington.edu
Depending on your goals (modifying latest myria-web vs running a stable version of the interface), you may wish to switch to the production branch.
To update the submodule to the latest from master, run this code:
git submodule update --recursive --remote(Might also require beforehand:
git submodule init)
Install the developer dependencies.
pip install -r requirements-dev.txtDownload a local copy of Google App Engine
curl -O http://googleappengine.googlecode.com/files/google_appengine_1.8.1.zip
unzip -q google_appengine_1.8.1.zipRun
nosetests -w appengine --with-gae --exclude-dir={myria,raco,ply,networkx} --without-sandbox --gae-lib-root=google_appengine
The Google App Engine GUI has a Logs button that can be helpful for diagnosing issues with the Myria web app.