Skip to content

agundy/canary-server

Repository files navigation

Canary-Server

Canary server is the Go backend for Canary, an ambient monitoring solution.

Test Status

Build Status

Getting Started

Requires Go and Postgresql installed.

Once go is installed you can run

Run the following commands in a PostgreSQL shell

CREATE USER gorm WITH PASSWoRD 'mypassword';
CREATE DATABASE canary.db;

To build the Go application run:

go get ./...
go build
./canary-server

Testing

Testing the project is as easy as running:

go test ./...

Or to just test models:

go test ./models

To test just user or project model tests:

go test ./models -run 'User' 
go test ./models -run 'Project'