GithubHelp home page GithubHelp logo

grseb9s / classification-app-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sentinel-hub/classification-app-backend

0.0 1.0 0.0 118 KB

Code to reproduce the back-end service for ClassificationApp

Home Page: https://apps.sentinel-hub.com/classificationApp/#lat=16.969046833518632&lng=36.77102565765381&zoom=14

License: MIT License

Dockerfile 0.06% Python 99.94%

classification-app-backend's Introduction

ClassificationApp back-end service

A server site support for ClassificationApp.

In order to run the back-end service, a Geopedia or equivalent database with tables as defined in schemas.py needs to be created. Get in touch if you are interested in reproducing the results using Geopedia.

A valid Sentinel Hub instance ID is required to retrieve Sentinel imagery. The instance ID need be added to the data/input_sources.json file.

How to run the service

There are multiple ways how to run the service:

Running development server locally (using pip)

(Required: Python >= 3.5)

  • Clone git repository, move to the main project folder and install the project as a normal Python package. The following will install it in editable mode:
pip install -e . --upgrade

(On Windows some dependency packages might raise an error during installation. Install them from wheels repo.)

  • Start running the service with:
python main.py

Running development server locally (using pipenv)

(Required: Python >= 3.5)

  • Clone git repository, move to the main project folder and install packages:
pipenv install
  • Enter virtual environment:
pipenv shell
  • Start the service:
python main.py

Running production server locally

(Required: docker)

  • Clone git repository, move to the main project folder and create a docker image:
docker build . --tag=class-service
  • Run the image in a container:
docker run -p 5000:80 class-service

(The service will be available at port 5000)

Development

Service end points

The running service will produce a swagger documentation at /docs (e.g locally that is 'http://127.0.0.1:5000/docs').

For more details check ./classification-service/service.py. There you will also see example calls with curl.

classification-app-backend's People

Contributors

devisperessutti avatar

Watchers

James Cloos 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.