标签:
beego虽然是一个简单的框架,但是其中用到了很多第三方的包,所以在你安装beego的过程中Go会自动安装其他关联的包。
go get github.com/astaxie/beego
go get github.com/beego/bee
这样就完成了beego的安装,你就可以开始开发了,可以通过bee工具来创建beego项目
beego依赖的第三方包有如下:
通过如下命令创建beego项目,首先进入gopath/src目录
adeMacBook-Pro:src apple$ bee new myproject
[INFO] Creating application...
/Users/apple/Documents/dev/go/src/myproject/
/Users/apple/Documents/dev/go/src/myproject/conf/
/Users/apple/Documents/dev/go/src/myproject/controllers/
/Users/apple/Documents/dev/go/src/myproject/models/
/Users/apple/Documents/dev/go/src/myproject/routers/
/Users/apple/Documents/dev/go/src/myproject/tests/
/Users/apple/Documents/dev/go/src/myproject/static/
/Users/apple/Documents/dev/go/src/myproject/static/js/
/Users/apple/Documents/dev/go/src/myproject/static/css/
/Users/apple/Documents/dev/go/src/myproject/static/img/
/Users/apple/Documents/dev/go/src/myproject/views/
/Users/apple/Documents/dev/go/src/myproject/conf/app.conf
/Users/apple/Documents/dev/go/src/myproject/controllers/default.go
/Users/apple/Documents/dev/go/src/myproject/views/index.tpl
/Users/apple/Documents/dev/go/src/myproject/routers/router.go
/Users/apple/Documents/dev/go/src/myproject/tests/default_test.go
/Users/apple/Documents/dev/go/src/myproject/main.go
2015/11/05 23:55:46 [SUCC] New application successfully created!
http://beego.me/docs/install/bee.md
http://my.oschina.net/astaxie/blog/124040
标签:
原文地址:http://www.cnblogs.com/super-d2/p/4946278.html