golang安装bee脚手架

我们如果想使用beego框架来快速开发web应用

首先要安装好golang环境

然后安装bee脚手架

只需要进入

`C:\Users\Administrator>`

然后执行`go get github.com/beego/bee`即可

如果速度非常慢可以切换源

```
C:\Users\Administrator>go env -w GO111MODULE=on

C:\Users\Administrator>go env -w GOPROXY=https://goproxy.cn
```

然后再执行

`go get github.com/beego/bee`

然后输入bee有以下提示

```
C:\Users\Administrator>bee
Bee is a Fast and Flexible tool for managing your Beego Web Application.

USAGE
bee command [arguments]

AVAILABLE COMMANDS

version Prints the current Bee version
migrate Runs database migrations
api Creates a Beego API application
bale Transforms non-Go files to Go source files
fix Fixes your application by making it compatible with newer versions of Beego
pro Source code generator
dlv Start a debugging session using Delve
dockerize Generates a Dockerfile for your Beego application
generate Source code generator
hprose Creates an RPC application based on Hprose and Beego frameworks
new Creates a Beego application
pack Compresses a Beego application into a single file
rs Run customized scripts
run Run the application by starting a local development server
server serving static content over HTTP on port
update Update Bee

Use bee help [command] for more information about a command.

ADDITIONAL HELP TOPICS

Use bee help [topic] for more information about that topic.

C:\Users\Administrator>
```

即表示bee安装成功

创建项目

只需要输入以下命令

`bee new beego-vue`

即可

然后

```
cd beego-vue

bee run

```

可以运行项目

    A+
发布日期:2022年10月04日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: