You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
818 B
Bash
43 lines
818 B
Bash
#!/bin/bash
|
|
|
|
#go1.24.1
|
|
#remove .idea in remote
|
|
#git rm -r --cached .idea
|
|
#export GOPROXY=https://goproxy.io
|
|
|
|
mkdir -p $HOME/goftpdir
|
|
|
|
go get github.com/astaxie/beego || echo github.com/astaxie/beego
|
|
go get github.com/satori/go.uuid || echo github.com/satori/go.uuid
|
|
go get github.com/beego/bee || echo github.com/beego/bee
|
|
go get github.com/go-sql-driver/mysql || echo github.com/go-sql-driver/mysql
|
|
|
|
go install github.com/beego/bee/v2@latest
|
|
|
|
#gorm
|
|
go get -u gorm.io/gorm
|
|
#gorm mysql driver
|
|
go get -u gorm.io/driver/mysql
|
|
|
|
|
|
#https://github.com/beego/bee
|
|
|
|
#bee创建项目 bee new
|
|
|
|
#bee new my-web-app
|
|
|
|
|
|
#运行项目bee run
|
|
|
|
#bee run
|
|
|
|
#创建api项目 To create a Beego API application: bee api
|
|
|
|
#bee api my-api
|
|
|
|
#项目打包 bee pack To compress a Beego application into a single deployable file:
|
|
|
|
#bee pack
|
|
|
|
|