The beegoist helps you install Go and Beego

Source: Internet
Author: User
Tags install go
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.