- Inatall go version 1.19
-
mkdir go
cd go
-
mkdir bin src pkg
graph TD;
go-->bin;
go-->src;
go-->pkg;
For linux:
export GOPATH=/usr/local/go
export GOBIN=/usr/local/go/bin
export GOENV=/usr/local/go
For Windlow:
set GOPATH=D:\go
set GOBIN=D:\go\bin
set GOENV=D:\go
- (Outside GOPATH) run
go mod init go
and thengo mod tidy
on 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@latest
go get -u github.com/beego/bee/v2@latest
go 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/src
directory - go to project directory
- Rename
.env sample
to.env
and enter your api key - run
bee run
http://localhost:8080
type on your browser
go version
"for check go version"bee version
"for check bee version"bee new project-name
"For create new bee project"