Skip to content
Server for communicating with guardian hosts.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
handlers
images
lib
.gitignore
.travis.yml
Dockerfile
Gopkg.lock
Gopkg.toml
LICENSE
README.md
build.sh
commands.yaml
config.example.json
data_structs.go
database.go
docker-compose.yml
graphql.go
main.go
main_test.go
now.json
token.go
token_test.go
user-authorization.go

README.md

guardian-server Build Status Coverage Status

Server for communicating with guardian hosts.

Building and Installation

The project can be build on either docker or bare metal, however most development is done with the provided dockerfile.

Bare Metal

  • Clone the repository.
git clone git@github.com:kochie/guardian-server.git
  • Start a redis instance somewhere and take note of the connection settings.
  • Start a postgres database somewhere and take note of the connection settings as well.
  • Modify the environment variables found in config.json and update any settings required.
  • Build the service with go, normally a sequence like.
go test -v ./...
go build main.go
  • [Optionally] Install the binary.
go install main.go

Docker

To build in docker compose.

docker-compose build 

To run in docker compose.

docker-compose up
You can’t perform that action at this time.