-
Notifications
You must be signed in to change notification settings - Fork 4
Development Guide to Getting Started
Chris Wood edited this page Feb 24, 2014
·
1 revision
This is a guide to get started developing on the Crisis Cleanup codebase.
Crisis Cleanup is a Google App Engine application (GAE), written in Python, so you will need the GAE Python SDK.
- Create a top-level project directory/folder.
- Download the SDK for your platform from https://developers.google.com/appengine/downloads
- Install the SDK for your platform as per https://developers.google.com/appengine/docs/python/gettingstartedpython27/devenvironment
- (Recommended, but optional) Create a python virtualenv using Python v2.7 for the project and enter it.
- Install Python Fabric and PyYAML (to the virtualenv):
pip install fabric PyYAML
- Clone the git repository to your project directory using the repository URL from https://github.com/aarontitus/crisiscleanup :
git clone <repository URL>
- In the repository directory, run
fab write_local_app_yaml
to generate anapp.yaml
file for the development server to read. - Run
fab dev
to start the development server. (If an error occurs, try editingfabfile.py
to direct the script to where you put the SDK. - Browse to the local address given when the development server starts up. You can login as the "Admin" user using the password "temporary_password".
To use the GoogleAppengineLauncher GUI app, you should:
- Copy GoogleAppEngineLauncher.app to the Application folder
- In GoogleAppEngineLauncher preferences set the Python Path (e.g. /Library/Frameworks/Python.framework/Versions/2.7/bin/python)
- In GoogleAppEngineLauncher click on File/Add Existing Application and select the directoy of the app (sandy-disaster-recovery)
- Click on "Run"