This is an example Google App Engine web app that communicates with Google Earth Engine. It allows users to view night-time lights for different years and export drawn regions to Google Drive.
The gcloud utility is needed to run an instance of the sample app on your machine. The same utility can be helpful in pushing things into the production App Engine cloud.
- Download and install the Google Cloud SDK.
- Authenticate to Google Cloud Platform by running
gcloud auth login
. - Configure the command line tools to use your cloud project by running:
gcloud config set project <project-id>
To set up yourself, download the Earth Engine API repository from GitHub:
git clone https://github.com/google/earthengine-api.git
Navigate to this demo:
cd ./earthengine-api/demos/export-to-drive/
Then follow the instructions in the Developer Docs to deploy an EE-based App Engine app. For the credentials section, you'll need both a Service Account and an OAuth2 Client ID.