bbb-web-api -- is a web server developed with golang.
The bbb-client-logger is a standalone web server that provides an HTTP API for storing logs.
The application can be built per platfrom using go build
command .If you have goxc installed you should be able to create package by running ./build.sh
file, the output directory is set to bin
.
- Install Go
cd src
sudo ./all.bash
- Update your ~/.profile file to contain the following Go environement variables
export GOROOT=/home/ubuntu/go
export GOPATH=/home/ubuntu/workspace/go
export GOBIN=/home/ubuntu/go/bin
export PATH=$PATH:$GOROOT/bin:$GOBIN
- Refresh your .profile
source ~/.profile
- Go to the project root and install its dependencies
go get github.com/gorilla/mux
go get github.com/spf13/viper
go get github.com/jhoonb/archivex
go get github.com/juju/loggo
go get gopkg.in/natefinch/lumberjack.v2
go get github.com/jchannon/negotiator
Run the server
./web-api
The server is immediately ready for querying.
A default configuration is hardcoded into the application but can be overriden by creating a config.json. The provided config.json contains the settings that can be changed.
To test the server you need a HTTP client. The default server port is 8090.
It is possible to choose between two return types, JSON which is by default enabled and XML by adding an HTTP GET parameter named 'marshall'.
Used third party libraries are:
github.com/gorilla/mux : http://www.gorillatoolkit.org/pkg/mux
github.com/spf13/viper : https://github.com/spf13/viper