A simple implement of id center.
-
Ensure the project in dir '$GOPATH/src'
-
Optional:
-
Get and install the library dependencies (Optional):
# redis driver
go get github.com/garyburd/redigo/redis
# mysql driver
go get github.com/ziutek/mymysql/thrsafe
go get github.com/ziutek/mymysql/autorc
go get github.com/ziutek/mymysql/godrv
# go_lib
cd <$GOPATH1/src> # $GOPATH1 is the first part of $GOPATH.
git clone https://github.com/hyper-carrot/go_lib.git
-
Edit id_center.config for your need.
-
Run:
cd <project_path>
go run server.go
- Access through web browser, url:
http://<hostname>:<port>/id?group=<group name>
.
Copyright (C) 2013
Distributed under the BSD-style license, the same as Go.