/bee-service

Primary LanguagePythonOtherNOASSERTION

Building Extraction Evaluation (BEE) Service

A RESTful web service to perform polygon comparison for building extraction evaluation (Polis). The service is implemented with the Django framework and deployed in the Azure Container Service . This repository has been tested to continuously deploy to Azure from GitHub. The container is stateless and lightweight.

Development steps

  1. git clone https://github.com/toddstavish/bee-service.git
  2. cd bee-service
  3. For Python code dev just run gunicorn locally (avoids container rebuilds)
  • gunicorn -b :8000 --timeout 120 django_rest.wsgi
  1. docker build -t bee .
  2. docker run -it -p 8000:8000 bee

Deployment steps

  1. Deploy container to Azure
  1. eval $(docker-machine env ) <-machine name is from first step
  2. Allow external network access to your VM (firewall in your resource group)

To Do

  1. C# client

Security\Performance concerns pre-deployment

  1. Turn off debug in django

License

See LICENSE.