This is a creation in Article, where the information may have evolved or changed.
Go and Beego is part of the continuing evolution of the web development. In Darwinian fashion, we see the adaptation of language and framework to meet the needs of simplification, productivity, p Erformance, and reliability in the software development process. Let ' s get going ...
Installing Go
First, download the latest Go installation file here. For example, to get the Linux installation file:
$ wget https://storage.googleapis.com/golang/go1.3.3.linux-amd64.tar.gz
Now, you must decompress the file:
$ sudo tar-c/usr/local-xzf go1.3.3.linux-amd64.tar.gz
You should update your PATH environment variable, either In/etc/profile or in $HOME/.profile, by add these lines:
Export Gopath= $HOME/go
Export path= $PATH:/usr/local/go/bin: $GOPATH/bin
Then logout and login again, or restart Terminal. You can also execute the above and export statements, instead.
You really need gopath so the Beego knows where to install Bee.
Installing Go for OS X and Windows is even easier. From here, just download, for example, the latest '. Pkg ' file (for OS X) or the ' latest '. msi ' file (for Windows):
Https://storage.googleapis.com/golang/go1.3.3.darwin-amd64-osx10.8.pkg
Or
Https://storage.googleapis.com/golang/go1.3.3.windows-amd64.msi
Installing Beego
You'll need to install Git first. In Ubuntu Linux:
$ sudo apt-get update
$ sudo apt-get install git
For Git in OS X and Windows, look here.
Now, you can install Beego:
$ go Get Github.com/astaxie/beego
$ go Get Github.com/beego/bee
Finally, create your first Beego project and run it:
$ cd $GOPATH/SRC
$ Bee New Yourprojectname
$ CD Yourprojectname
$ bee Run
There, you ' re done! Visit http://localhost:8080 to see the app running.
Wrapping up
Do is afraid of the command line. It is your friend! Very often, the monuments to mouse and GUI just get in the the-and make-things more awkward than they need to be.
I ' m not suggesting you, do everything on the command line. But for the simpler operations, such as downloading or updating software, the keyboard are much more efficient.