beego虽然是一个简单的框架,但是其中用到了很多第三方的包,所以在你安装beego的过程中Go会自动安装其他关联的包。

  • 当然第一步你需要安装Go,如何安装Go请参考我的书
  • 安装beego
go get github.com/astaxie/beego
  • 安装bee工具,这个工具可以用来快速的建立beego的应用
go get github.com/beego/bee

这样就完成了beego的安装,你就可以开始开发了,可以通过bee工具来创建beego项目

beego依赖的第三方包有如下:

  • session模块:github.com/astaxie/beego/session
  • session模块中支持redis引擎:github.com/garyburd/redigo/redis
  • session模块中支持mysql引擎:github.com/go-sql-driver/mysql
  • 模板函数中支持markdown转化:github.com/russross/blackfriday

新建项目

通过如下命令创建beego项目,首先进入gopath/src目录

adeMacBook-Pro:src apple$ bee new myproject

[INFO] Creating application...

/Users/apple/Documents/dev/go/src/myproject/

/Users/apple/Documents/dev/go/src/myproject/conf/

/Users/apple/Documents/dev/go/src/myproject/controllers/

/Users/apple/Documents/dev/go/src/myproject/models/

/Users/apple/Documents/dev/go/src/myproject/routers/

/Users/apple/Documents/dev/go/src/myproject/tests/

/Users/apple/Documents/dev/go/src/myproject/static/

/Users/apple/Documents/dev/go/src/myproject/static/js/

/Users/apple/Documents/dev/go/src/myproject/static/css/

/Users/apple/Documents/dev/go/src/myproject/static/img/

/Users/apple/Documents/dev/go/src/myproject/views/

/Users/apple/Documents/dev/go/src/myproject/conf/app.conf

/Users/apple/Documents/dev/go/src/myproject/controllers/default.go

/Users/apple/Documents/dev/go/src/myproject/views/index.tpl

/Users/apple/Documents/dev/go/src/myproject/routers/router.go

/Users/apple/Documents/dev/go/src/myproject/tests/default_test.go

/Users/apple/Documents/dev/go/src/myproject/main.go

2015/11/05 23:55:46 [SUCC] New application successfully created!

http://beego.me/docs/install/bee.md

http://my.oschina.net/astaxie/blog/124040

bee使用的更多相关文章

  1. 使用bee自动生成api文档

    beego中的bee工具可以方便的自动生成api文档,基于数据库字段,自动生成golang版基于beego的crud代码,方法如下: 1.进入到gopath目录的src下执行命令: bee api a ...

  2. Bee Framework_百度百科

    Bee Framework_百度百科 Bee Framework 编辑   目录 1详细信息 简介 特性 2工作 主要模块 编译要求 运行要求 目录结构 运行例程 安装步骤     1详细信息 简介 ...

  3. 通用性站点管理后台(Bee OPOA Platform)

    当前标签: Bee OPOA Platform   通用性站点管理后台(Bee OPOA Platform) (5)- [扩展]基于WebSocket的监视Sql执行功能 蜂 2013-10-25 1 ...

  4. 公众平台Bee.WeiXin

    微信公众平台Bee.WeiXin开发介绍 阅读目录 开始 预览 配置项说明 调用链方式的应答 理解调用链上下文 自定义MVC响应 总结 我们来看一下如何通过Bee.WeiXin开发微信公众平台.关于微 ...

  5. macOS安装beego的使用bee命令出现killed:9 解决办法

    最近想搞一个restful api,发现go还是不错的,拿来研究下 beego文档:https://beego.me/quickstart 安装之后,执行bee命令,报错如下: 应该是最新mac OS ...

  6. ACM Bee

    In Africa there is a very special species of bee. Every year, the female bees of such species give b ...

  7. bee: command not found问题解决之道

    $ bee bash: bee: command not found 遇到这个错误的时候,我希望您是所有环境全部安装好的情况下遇到的,如果你的环境没有安装好请参考 beego环境搭建http://bl ...

  8. golang学习笔记5 用bee工具创建项目 bee工具简介

    golang学习笔记5 用bee工具创建项目 bee工具简介 Bee 工具的使用 - beego: 简约 & 强大并存的 Go 应用框架https://beego.me/docs/instal ...

  9. etymon word flower bee apiary forget out~1

    1● anth   2● flower 花       1● ap   2● bee 3● apiary 养殖场          

随机推荐

  1. centos 安装gcc时,出错:Found 10 pre-existing rpmdb problem(s), 'yum check' output follows:

    别人折腾的系统. 刚开始,准备安装下tornado,报错,需要安装 gcc 和 python-devel gcc安装报错,如标题所示: 谷歌了一把: http://stackoverflow.com/ ...

  2. Python 列表元素排重uniq

    # -*- coding: gbk -*- def uniq(ls): lsCopy=[e for e in ls] for i in xrange(1,len(ls)): for j in xran ...

  3. 【GoLang】GoLang for 中有多个循环变量怎么处理?

    代码示例: sum := , ; i <= && j <= ; i, j = i+, j- { t.Log("i: ", i) t.Log(" ...

  4. subprocess模块在Windows下调用失败问题

    bug of pythonhttp://bugs.python.org/issue1759845 解决:print sys.stdout.encoding  #eg : it shows cp936i ...

  5. Appium+Robotframework实现Android应用的自动化测试-2:Windows中启动Appium和模拟器

    一.启动Appium 安装好了之后,在桌面或者菜单中找到Appium,分别双击或点击打开Appium.exe,如果一切正常,接着会出现一个Appium启动后的界面窗口,如下图所示. 1.1 Andro ...

  6. c++ vector struct 使用

    1. //test.h #include <string> using namespace std; struct AA { string a1; string a2; string a3 ...

  7. ACM/ICPC 之 DFS范例(ZOJ2412-ZOJ1008)

    通过几道例题简单阐述一下DFS的相关题型 ZOJ2412-Farm Irrigation 直观的DFS题型,稍加变化,记录好四个方向上的通路就能够做出来 题目和接水管类似,问最少要灌溉几次,即求解最少 ...

  8. SQL Server 2008登录错误:无法连接到(local)的解决方法

    1.服务器类型我们选择了“数据库引擎”时,查找里面的可登录用户名是没有的,下边的服务器名称只显示为“(local)”,连“Windows 身份验证”都无法登录. 如果朋友们和我出错的问题是一样请看下面 ...

  9. C++库(TinyXML)

    C++库(TinyXML) 什么是XML? "当 XML(扩展标记语言)于 1998 年 2 月被引入软件工业界时,它给整个行业带来了一场风暴.有史以来第一次,这个世界拥有了一种用来结构化文 ...

  10. 让复杂Json数据和对象自由转换 --- Gson

    Gson是谷歌用于对Json操作的库,里面有着强大而又方便的功能,最常用的就是 fromJson():将json数据转化为对象: toJson():将对象转化为json数据! 对于普通的json数据使 ...