Developers - GeomancerProject/geomancer-api GitHub Wiki
Here are some details about developing the Geomancer API.
Getting the code
Make sure you have Git installed, and then from the command line:
$ git clone [email protected]:GeomancerProject/geomancer-api.git
That will download the full code repository into a directory named
It's useful adding the SDK to your PATH by adding the following line to your
App Engine ships with a local development server. At the command line:
$ cd geomancer-api $ dev_appserver.py --clear_search_index --high_replication --use_sqlite -c .
Geomancer rides on Google APIs (e.g., Prediction) and it needs to bootstrapped with credentials by accessing http://localhost:8080/admin/oauth. Make sure you login as administrator and then click "Allow access".
When that's done, you can hit the API!
Deploying to App Engine
To deploy to App Engine:
$ cd geomancer-api $ app_cfg.py update .
That will upload all the code to the version specified in the
app.yaml file. To specify a different version:
$ cd geomancer-api $ app_cfg.py update -V foo .
And it will be available at http://foo.geomancer-api.appspot.com.