Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

urbica/node-martin

Repository files navigation

Urbica Martin

Build Status Greenkeeper badge

Martin is a lightweight Node.js Mapbox Vector Tiles server from a PostGIS database.

Martin

Installation

martin requires node v7.6.0 or higher for ES2015 and async function support.

npm install @urbica/martin -g

...or build from source

git clone https://github.com/urbica/martin.git
cd martin
npm install

Usage

Usage: martin [--help] [--version] <command> <args>

Commands:
  serve             <uri|config>
  generate-config   <uri>

Examples

martin serve postgresql://localhost/test
martin generate-config postgresql://localhost/test
martin serve config.json

See API for more info.

Using with Docker

docker run -d \
  -p 4000:4000 \
  -v $(pwd)/config.json:/config.json \
  urbica/martin serve /config.json
docker run -d \
  -p 4000:4000 \
  -v $(pwd)/config.json:/config.json \
  urbica/martin serve postgresql://user:password@host:port/database