Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.27 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.27 KB

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 [email protected]: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