GithubHelp home page GithubHelp logo

gee-gateway's Introduction

gee-gateway

Python: 2.7 License: MIT

A REST API designed to be used by CEO (Collect Earth Online) to interface with Google Earth Engine.

REQUIREMENTS

  1. Python 2.7
  2. pip (package manager)
  3. Earth Engine Python API
  4. virtualenv (Optional)

INSTALLATION

From project root directory

pip install -r requirements.txt

OR using virtualenv (Optional)

virtualenv env
source env/bin/activate
pip install -r requirements.txt

CONFIGURATION

Edit the configuration file (config.py or instance/config.py)

DEBUG = False # {True|False}
PORT = 8888 # flask server running port
HOST = '0.0.0.0' # flask server running host
CO_ORIGINS = '*' # origin or list of origins to allow requests from
import logging
LOGGING_LEVEL = logging.INFO # {NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL}

EXECUTION

From project root directory

python run.py

OR using virtualenv (Optional)

source env/bin/activate
python run.py
usage: run.py [-h] [--gmaps_api_key GMAPS_API_KEY] [--ee_account EE_ACCOUNT]
              [--ee_key_path EE_KEY_PATH]

optional arguments:
  -h, --help            show this help message and exit
  --gmaps_api_key GMAPS_API_KEY
                        Google Maps API key
  --ee_account EE_ACCOUNT
                        Google Earth Engine account
  --ee_key_path EE_KEY_PATH
                        Google Earth Engine key path

DOCUMENTATION

pip install sphinx
pip install sphinxcontrib-httpdomain

From project root directory

sphinx-build -aE -b html . static/docs

STRUCTURE

├── README.md
├── license.txt
├── requirements.txt            list of third party packages to install
├── config.py                   configuration file
├── setup.py                    setup script
├── run.py                      application start up
├── instance/                   (not in version control)
    ├── config.py               alternative configuration file (not in version control)
├── gee_gateway/                application folder
    ├── __init__.py             blueprint initialization
    ├── web/
        ├── __init__.py
        ├── errors.py           error handlers definition
        ├── routes.py           blueprint routes definition
    ├── gee/
        ├── __init__.py
        ├── gee_exception.py
        ├── utils.py
    ├── templates/              blueprint templates
        ├── index.html          playground
    ├── static/                 blueprint static files
        ├── assets/             css, images, js, libs and fonts
├── conf.py                     sphinx (documentation) configuration file
├── index.rst                   sphinx index file
├── static/                     static resources folder
    ├── docs/                   documentation folder
        ├── index.html

gee-gateway's People

Contributors

rfontanarosa avatar billyz313 avatar kmarkert avatar cdanielw avatar herrtunante avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.