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.
- Host: GitHub
- URL: https://github.com/phyng/goanalytics
- Owner: phyng
- License: mit
- Created: 2016-04-04T14:36:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T15:36:09.000Z (about 10 years ago)
- Last Synced: 2025-03-11T22:41:37.490Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 734 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
~~~