A seed for a python backend using Flask on App Engine.
- Install Google App Engine Launcher;
- Install pip & virtualenv;
- Run
./bin/init.shto initiate an isolated python environment; - Run
source venv/bin/activateto activate the isolated python environment.
Run nosetests in the root directory.
App Engine has no dependency management system and requires the dependencies to be included.
The seed uses linkenv to go around this limitation.
Run linkenv venv/lib/python2.7/site-packages libs after adding new dependencies to remain compliant.
- Make sure your isolated environment is activated;
- Run
pip install <dependencies>; - Run
linkenv venv/lib/python2.7/site-packages libs; - Add the dependencies in the proper requirements file.
- init: initialises environment (virtualenv + development dependencies)
- dev: sets environment (dependencies) to development
- deploy: installs production dependencies and deploys to App Engine
- run: runs the application in App Engine mode