Canary server is the Go backend for Canary, an ambient monitoring solution.
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 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'