- Inatall go version 1.19
-
mkdir gocd go -
mkdir bin src pkg
graph TD;
go-->bin;
go-->src;
go-->pkg;
For linux:
export GOPATH=/usr/local/goexport GOBIN=/usr/local/go/binexport GOENV=/usr/local/go
For Windlow:
set GOPATH=D:\goset GOBIN=D:\go\binset GOENV=D:\go
- (Outside GOPATH) run
go mod init goand thengo mod tidyon terminal
go get github.com/astaxie/beego- for windows
go install github.com/beego/bee/v2@latest;
go get -u github.com/beego/beego/v2@latestgo get -u github.com/beego/bee/v2@latestgo get github.com/beego/beego/v2/server/[email protected]- For env
go get github.com/joho/godotenv - For cache
go get github.com/patrickmn/go-cache
- First of all clone this Project
- Now go to the download directory
- Extract this File
- move this project
/usr/local/go/srcdirectory - go to project directory
- Rename
.env sampleto.envand enter your api key - run
bee run http://localhost:8080type on your browser
go version"for check go version"bee version"for check bee version"bee new project-name"For create new bee project"