How to Set up a Web Server

Why set up a server?

To proxy connections to avoid CORS issues and handle processing while the app's iframe is closed. For background on CORS, see: this link


Example Webserver

First clone the example which uses the tornado webserver to query the Google Maps API, available here.

The example uses tornado to send a request to Google Map's API to return the geocoded output of a street address, in the format used by the national postal service of the country concerned. Documentation on the specific outputs and queries for this API is available here

CORS Headers

The headers found in the example allow for cross-origin requests to be made from the DroneDeploy plugin to the webserver in the example repository.

How to Set up Heroku

Create an account on Heroku, download the Heroku CLI, and run

heroku login

This will allow you to setup the command line client for Heroku access.

Now use heroku to create your new app server. For the purposes of this tutorial, we will use the example web server (sample-app-server).

heroku create --ssh-git sample-app-server
git clone

For local testing using the example available on git, run

API_KEY=your_google_maps_api_key python

For testing on Heroku, run:

heroku config:set API_KEY=your_google_maps_api_key