The Beegoist helps you install Go and Beego

Richard Eng · · 2720 次点击 · · 开始浏览    
这是一个创建于 的文章,其中的信息可能已经有所发展或是发生改变。

Go and Beego are part of the continuing evolution of web development. In Darwinian fashion, we see the adaptation of language and framework to meet the needs of simplification, productivity, performance, 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 two export statements, instead.

You really need GOPATH so that 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 will need to install Git first. In Ubuntu Linux:

$ sudo apt-get update
$ sudo apt-get install git

For Git on 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 not be afraid of the command line. It is your friend! Very often, the monuments to mouse and GUI just get in the way and make things more awkward than they need to be.

I’m not suggesting you that do everything on the command line. But for the simpler operations, such as downloading or updating software, the keyboard is much more efficient.


有疑问加站长微信联系(非本文作者)

本文来自:medium

感谢作者:Richard Eng

查看原文:The Beegoist helps you install Go and Beego

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

2720 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传