install and use beego easily 1

install and use beego easily

go env -w GO111MODULE=on

go get -u github.com/beego/beego/v2
go get -u github.com/beego/bee/v2

# then use the following command to create new bee project
bee new hello
cd hello
go mod tidy # run this to download needed packages
bee run
# now site will be available on port 8080

Here is what the above code is Doing:
1. Install go
2. Set GOPATH and GOROOT
3. Set GO111MODULE to on
4. Install beego and bee
5. Create a new project called hello
6. Run the project

Similar Posts