Add server usage example

This commit is contained in:
lukasmartinelli
2016-09-27 22:30:00 +02:00
parent 1f1580276d
commit 3d09f2a0f3

View File

@@ -1,6 +1,33 @@
# Maputnik Desktop
A Golang based cross platform executable for integrating Maputnik locally.
The idea is to package up the JavaScript and CSS bundle produced by [maputnik/editor](https://github.com/maputnik/desktop)
and embed it in the server program.
### Usage
*Not functional yet*
Simply start up a web server and access the Maputnik editor GUI at `localhost:8000`.
```
maputnik
```
Expose a local style file to Maputnik allowing the web based editor
to save to the local filesystem.
```
maputnik --file basic-v9.json
```
Watch the local style for changes and inform the editor via web socket.
This makes it possible to edit the style with a local text editor and still
use Maputnik.
```
maputnik --watch --file basic-v9.json
```
### Build