Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 1.61 KB

README.md

File metadata and controls

54 lines (30 loc) · 1.61 KB

Tracklog

Tracklog is a web application for managing GPX track files written in Go.

This is a fork of tracklog by Thomas Cyron.


Run Tracklog with Docker

There’s a Docker image kaleworsley/tracklog for Tracklog. This image only contains the server and import binary, you have to bring your own Postgres server. You also have to provide a config file.

docker run -v /path/to/config.toml:/config.toml -p 8080:8080 kaleworsley/tracklog

Installation

First, make sure you have Go and Node.js installed.

To build the JavaScript and CSS assets, run:

yarn install
yarn run build

Now, build the command line programs:

./script/build

Create and initialize a new Postgres database:

createdb tracklog
psql tracklog < pkg/db/postgres.sql

Add a new user:

cmd/control/control -config config.toml user add <name>

Start the server and point your browser to http://localhost:8080/:

cmd/server/server -config config.toml

You can batch-import your GPX files with:

cmd/control/control -config config.toml import -user <name> /path/to/your/*.gpx

License

Tracklog is licensed under the MIT license.

Copyright (c) 2016 Thomas Cyron, 2017 Kale Worsley.