1、安装 Go 1.1+ 以确保所有功能的正常使用,需要安装或者升级 Beego 和 Bee 的开发工具:
$ go get -u github.com/astaxie/beego
$ go get -u github.com/beego/bee
2、为了更加方便的操作,请将 %GOPATH%/bin 加入到你的 系统PATH 变量中。请确保在此之前您已经添加了%GOPATH%变量。

3、Windows 平台下输入:
>cd %GOPATH%/src
>bee new hello

>cd hello
>bee run hello

4、我们打开浏览器就可以看到效果 http://localhost:8080/:

网友评论