Skip to content

venliong/gopher

 
 

Repository files navigation

#Gopher

Golang中国(www.golang.tc)源代码.

##Requirements

  • Go1.0+
  • MongoDB
  • github.com/gorilla/mux
  • github.com/gorilla/sessions
  • labix.org/v2/mgo

##Install

go get -u github.com/gorilla/mux
go get -u github.com/gorilla/sessions
go get -u labix.org/v2/mgo
git clone git://github.com/jimmykuu/gopher.git

修改文件 config.json.defaultconfig.json 作为配置文件

  • superusers: 内容为用户名,如果没有管理员,内容为"",如果有多个,用空格隔开
  • analytics_file: 内容为统计分析代码的文件名

内容如下:

{
    "host": "http://localhost:8888",
    "port": "8888",
    "db": "localhost:27017",
    "cookie_secret": "05e0ba2eca9411e18155109add4b8aac",
    "smtp_username": "username@example.com",
    "smtp_password": "password",
    "smtp_host": "smtp.example.com",
    "smtp_addr": "smtp.example.com:25",
    "from_email": "who@example.com",
    "superusers": "jimmykuu,another",
    "analytics_file": ""
}

先启动MongoDB

然后运行命令

go run *.go

或者

go build -o gopher *.go
./gopher

##Contributors

##License

Copyright (c) 2012

Released under the MIT license:

About

Golang-China Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published