2018-01-16 15:55:05 +03:00
|
|
|
# Martin
|
2017-10-09 14:29:03 +03:00
|
|
|
|
2018-01-16 15:55:05 +03:00
|
|
|
[![Build Status](https://travis-ci.org/urbica/martin.svg?branch=master)](https://travis-ci.org/urbica/martin)
|
2017-10-15 14:48:23 +03:00
|
|
|
|
2017-11-16 21:14:38 +03:00
|
|
|
PostGIS [Mapbox Vector Tiles](https://github.com/mapbox/vector-tile-spec) server.
|
2017-10-09 14:29:03 +03:00
|
|
|
|
|
|
|
**Warning: this is experimental**
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2018-01-16 15:55:05 +03:00
|
|
|
git clone git@github.com:urbica/martin.git
|
|
|
|
cd martin
|
2017-10-09 14:29:03 +03:00
|
|
|
cargo build --release
|
2018-01-16 15:55:05 +03:00
|
|
|
./target/release/martin
|
2017-10-09 14:29:03 +03:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2018-01-16 15:55:05 +03:00
|
|
|
DATABASE_URL=postgres://postgres:password@localhost:5432/test martin
|
2017-10-09 14:29:03 +03:00
|
|
|
|
|
|
|
## Using with Docker
|
|
|
|
|
2018-01-16 15:55:05 +03:00
|
|
|
docker run -d —rm —name martin \
|
2017-10-09 14:29:03 +03:00
|
|
|
-p 3000:3000 \
|
|
|
|
-e DATABASE_URL=postgres://postgres:password@localhost:5432/test \
|
2018-01-16 15:55:05 +03:00
|
|
|
urbica/martin
|
2017-10-09 14:29:03 +03:00
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
Install project dependencies and check that the tests run
|
|
|
|
|
|
|
|
cargo test
|
|
|
|
cargo run
|