Skip to content

Commit

Permalink
Update gost_installation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bertt authored Dec 6, 2016
1 parent 104be72 commit 2ee4b18
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions docs/gost_installation.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@

### Gost installation

## Prerequisites

## Build from Source
1) Install GoLang

1) Install GoLang (https://golang.org/)<br />
2) Install Postgresql (http://www.postgresql.org/) and PostGIS <br />
Create a database and run "CREATE EXTENSION postgis;" on it<br />
3) Clone code
See (https://golang.org/)

2) Install PostgreSQL (http://www.postgresql.org/) with PostGIS and GOST database

See (https://github.com/Geodan/gost-db/blob/master/README.md)

## Install from binaries

todo

## Install from Source

1) Clone code
```sh
git clone https://github.com/Geodan/gost.git
```
4) Get dependencies
2) Get dependencies

```sh
go get github.com/gorilla/mux
go get gopkg.in/yaml.v2
go get github.com/lib/pq
go get github.com/eclipse/paho.mqtt.golang
```
5) Edit config.yaml or set environment settings to change connection to database<br />

6) Create GOST schema
3) Edit config.yaml or set environment settings to change connection to database<br />

See [https://github.com/Geodan/gost-db/blob/master/gost_init_db.sql](https://github.com/Geodan/gost-db/blob/master/gost_init_db.sql) for GOST schema sql script.
4) Start

7) Start
```sh
go run main.go
```

8) In browser open http://localhost:8080/v1.0 to test if the server is running
5) In browser open http://localhost:8080/v1.0 to test if the server is running

## Build from install script

Expand Down

0 comments on commit 2ee4b18

Please sign in to comment.