This repository is the microservice that implements the csv adapter funcionality, which is exposed on the /csv endpoint.
View the documentation for this API
First, make sure that you have the API gateway running locally.
We're using Docker which, luckily for you, means that getting the application running locally should be fairly painless. First, make sure that you have Docker Compose installed on your machine.
If you've not used Docker before, you may need to set up some defaults:
docker-machine create --driver virtualbox default
docker-machine start default
eval $(docker-machine env default)
Now we're ready to actually get the application running:
git clone https://github.com/Vizzuality/gfw-geostore-api.git
cd gfw-geostore-api
npm install
npm run develop
You can now access the microservice through the API gateway.
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_URL => Gateway Service API URL
- NODE_ENV => Environment (prod, staging, dev)