An open API service indexing awesome lists of open source software.

https://github.com/phyng/goanalytics

A analytics system powered by golang.
https://github.com/phyng/goanalytics

Last synced: 3 months ago
JSON representation

A analytics system powered by golang.

Awesome Lists containing this project

README

          

go-analytics
============

A analytics system write by golang.

## Load template to ElasticSearch
~~~bash
curl -XPOST http://localhost:9200/analytics/ -d@index.template.json
~~~
make sure return `{"acknowledged":true}`

## Run
~~~bash
export ENV_ELASTICSEARCH_HOST=localhost
go run server.go :8001
~~~

## Test
~~~bash
export ENV_TEST_SERVER=http://localhost:8001
go test
~~~

## build
~~~bash
./build.sh
~~~

## deploy
~~~bash
cd html
python -m SimpleHTTPServer 8002
~~~