go--->beego framework installation

beego
  • Install
    • 1. Create a new gopath project directory
    • 2. Execute the go get github.com/astaxie/beego command in the newly created project directory
    • 3. Then execute go get github.com/beego/bee to download the bee tool
    • 4. At this time, the bee command is in the bin directory under GOPATH. If you do not configure bee to a global variable, you can execute it like this: %GOPATH%/bin/bee new ltfweb
    • 5. The main two commands of bee:
    1. The bee new webprojectname
      new command is to create a new web project. We can create a new project by executing bee new <project name> on the command line. But note that this command must be executed under $GOPATH/src
    2. bee api apiprojectname
      Many users use beego to develop API applications. So this api command is used to create an API application
    3. The obvious difference between the web project and the api project is that the web has more static and view directories than the api.
    4. bee run: The biggest problem when we develop Go projects is that we often need to compile and run them manually. The bee run command is to monitor beego projects and monitor the file system through fsnotify; but note that this command must be in $GOPATH/src/appname Execute below.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325093445&siteId=291194637