santaclaus-api

Santa Claus api is the API that provide the data endpoints for the project santa-claus-frontend. It has a basic router based on violetear that handle the requests and forward to the proper handler. The handler interact with other packages to return json based responses.
Setup
Installing Dependencies
go get ./...
Config
cp config.json.dist config.json
Running Application
go run main.go
Tests
Run all the tests: go test ./...
Build
make
The result of this build will be a app.bz2
in the project root containing a folder named bin
, this folder contains the binary to run the project, the REVISION
file with the commit hash, and the config.json
file with the necessary configuration for the current environment.