Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.45 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.45 KB

Global Forest Watch Geostore API

This repository is the microservice that implements the Geostore funcionality, which is exposed on the /geostore endpoint.

The Geostore is a simple GeoJSON storage service that receives GeoJSON and returns an ID that can be used later to retrieve the given object. It is used primarily by the GFW map to handle large GeoJSON objects that could not normally be stored in the URL.

View the documentation for this API

  1. Getting Started
  2. Deployment

Getting Started

First time user

Perform the following steps:

    sh ./geostore.sh develop

Deployment

The application is deployed to Heroku. Setup Heroku for the repository:

heroku git:remote -a gfw-geostore-api-staging -r staging

And deploy as normal:

git push staging master

Configuration

It is necessary to define these environment variables:

  • API_GATEWAY_URI => Gateway Service API URL
  • NODE_ENV => Environment (prod, staging, dev)