aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 72857cf26286b60ff60481f5fd25753bdd9b61a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Setup:

Install golang

Set these enviroment variables:
export GOROOT=/usr/lib/go
export GOPATH=$HOME/.local/go //or where ever you have you go src dir
export PATH="$PATH:$GOPATH/bin"

run
go get github.com/lib/pq //database

create a database and user with psql and run
psql -U (user) -d (database) -f databaseschema.psql

set db user, password, name in main.go
set the Domain variable to the domain name that identifies this instance

run
go run .

One up and running query the database with
select * from boardaccess;
To be able to get your administrative credentials