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
Perform the following steps:
- Install docker && docker composse
- Install control tower
- Clone this repository:
git clone [email protected]:gfw-api/gfw-geostore-api.git
- Enter in the directory
cd gfw-geostore-api
- Open a terminal and run:
sh ./geostore.sh develop
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
It is necessary to define these environment variables:
- API_GATEWAY_URI => Gateway Service API URL
- NODE_ENV => Environment (prod, staging, dev)