Martin is a lightweight Node.js Mapbox Vector Tiles server from a PostGIS database.
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: martin [--help] [--version] <command> <args>
Commands:
serve <uri|config>
generate-config <uri>
martin serve postgresql://localhost/test
martin generate-config postgresql://localhost/test
martin serve config.json
See API for more info.
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