go beego language development framework crash

1, installed go environment

2, beego tool mounting frame and bee

$ go get github.com/astaxie/beego 
$ go get github.com/beego/bee
复制代码

Installed beego framework, tools and bee, (This command may take in C: \ Users \ vargo \ go under \ src directory)

3, web project

new command is to create a new Web project, we execute bee new <project name> at the command line you can create a new project. However, note that this command is only  The next GOPATH / src.  The last willgenerated in the project directory structure in GOPATH / src appropriate directory: bee new (item name)

4, Api applications

We execute bee api <project name> at the command line you can create a new project. However, note that this command is only  The next GOPATH / src.  The last willgenerated in the project directory structure in GOPATH / src appropriate directory: bee api (item name)

5, bee running applications go

bee run command is monitoring beego project, by fsnotify monitor file system. However, note that the command must be executed under $ GOPATH / src / appname.

6, bee run -gendoc = true -downdoc = true (document generation swagger),

Guess you like

Origin juejin.im/post/5d8b6634f265da5b9b7ffb10