Code Monkey home page Code Monkey logo

gopher's Introduction

#Gopher

Golang**(www.golang.tc)源代码.

##Requirements

  • Go1.0+
  • MongoDB
  • code.google.com/p/gorilla/mux
  • code.google.com/p/gorilla/sessions
  • labix.org/v2/mgo

##Install

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

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

  • superusers: 内容为用户名,如果没有管理员,内容为"",如果有多个,用空格隔开

内容如下:

{
    "host": "http://localhost:8888",
    "port": "8888",
    "db": "localhost:27017",
    "cookie_secret": "05e0ba2eca9411e18155109add4b8aac",
    "smtp_username": "[email protected]",
    "smtp_password": "password",
    "smtp_host": "smtp.example.com",
    "smtp_addr": "smtp.example.com:25",
    "from_email": "[email protected]",
	"superusers": "jimmykuu,another"
}

先启动MongoDB

然后运行命令

go run *.go

或者

go build -o gopher *.go
./gopher

##Contributors

##License

Copyright (c) 2012

Released under the MIT license:

gopher's People

Contributors

jimmykuu avatar fanflash avatar

Watchers

Gilbert.Ho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.