Skip to content

GPSDD/document-adapter

 
 

Repository files navigation

Resource Watch Adapter CSV

This repository is the microservice that implements the csv adapter funcionality, which is exposed on the /csv endpoint.

View the documentation for this API

  1. Getting Started
  2. Deployment

Getting Started

OS X

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.

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_URL => Gateway Service API URL
  • NODE_ENV => Environment (prod, staging, dev)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.4%
  • Shell 1.7%
  • Dockerfile 0.9%