gospatial

command module
v0.0.0-...-6555678 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2018 License: MIT Imports: 20 Imported by: 0

README

GoSpatial

Go Report Card Version 1.10.4 License MIT License

Full documentation: http://sjsafranek.github.io/gospatial/

Golang RESTful api for writing, storing, and serving GeoJSON data. GoSpatial also includes a mapping front end powered by Leaflet.js. Users are able to see eachothers work before submitting.

Install

./install.sh will install the following packages and setup the workspace:

github.com/gorilla/websocket
github.com/gorilla/mux
github.com/boltdb/bolt

Run make install to build the binary for the application

Run

Execute the binary file produced in the projects bin directory

./bin/gospatial
Command Line Agruments
Usage of ./bin/gospatial:
  -d	debug mode
  -db string
    	app database (default "bolt")
  -p int
    	server port (default 8080)
  -s string
    	superuser key (default "su")
  -v	App Version
  • -d: places the server into "debug mode". While the server app is in this mode, logs will be written to a log file.
  • -db: Specifies what database file to use. Default database is bolt.db.
  • -p: Specifies the server port. Default port is 8080.
  • -s: Specifies the superuser key for management routes. Default key is su.
  • -v: Prints the app version
Service File
vim /lib/systemd/system/gospatial.service
systemctl daemon-reload
Restore database from commit log
`nc localhost 3333 < test_commit.log 2>&1 | tee -a file_load.log`

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL