bee使用
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使用的更多相关文章
- 使用bee自动生成api文档
beego中的bee工具可以方便的自动生成api文档,基于数据库字段,自动生成golang版基于beego的crud代码,方法如下: 1.进入到gopath目录的src下执行命令: bee api a ...
- Bee Framework_百度百科
Bee Framework_百度百科 Bee Framework 编辑 目录 1详细信息 简介 特性 2工作 主要模块 编译要求 运行要求 目录结构 运行例程 安装步骤 1详细信息 简介 ...
- 通用性站点管理后台(Bee OPOA Platform)
当前标签: Bee OPOA Platform 通用性站点管理后台(Bee OPOA Platform) (5)- [扩展]基于WebSocket的监视Sql执行功能 蜂 2013-10-25 1 ...
- 公众平台Bee.WeiXin
微信公众平台Bee.WeiXin开发介绍 阅读目录 开始 预览 配置项说明 调用链方式的应答 理解调用链上下文 自定义MVC响应 总结 我们来看一下如何通过Bee.WeiXin开发微信公众平台.关于微 ...
- macOS安装beego的使用bee命令出现killed:9 解决办法
最近想搞一个restful api,发现go还是不错的,拿来研究下 beego文档:https://beego.me/quickstart 安装之后,执行bee命令,报错如下: 应该是最新mac OS ...
- ACM Bee
In Africa there is a very special species of bee. Every year, the female bees of such species give b ...
- bee: command not found问题解决之道
$ bee bash: bee: command not found 遇到这个错误的时候,我希望您是所有环境全部安装好的情况下遇到的,如果你的环境没有安装好请参考 beego环境搭建http://bl ...
- golang学习笔记5 用bee工具创建项目 bee工具简介
golang学习笔记5 用bee工具创建项目 bee工具简介 Bee 工具的使用 - beego: 简约 & 强大并存的 Go 应用框架https://beego.me/docs/instal ...
- etymon word flower bee apiary forget out~1
1● anth 2● flower 花 1● ap 2● bee 3● apiary 养殖场
随机推荐
- fzu2188 状压dp
G - Simple String Problem Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & ...
- 【Nginx】nginx 代理 Haproxy 怎么设置?
由于Haproxy是通过 url 正则匹配 识别 的,nginx代理到 haproxy需要设置 proxy_set_header Host 为 haproxy的目标 url 直接上配置 upstrea ...
- 【leetcode】Rotate Image
Rotate Image You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees ...
- C#之使用NotifyIcon实现任务栏托盘菜单,图标闪烁效果及气泡提示
很多程序是只需要后台运行的,甚至不需要自己的应用界面.NotifyIcon提供了程序在任务栏的显示功能 程序下载链接如下: http://download.csdn.net/detail/u01031 ...
- 通过nsenter连接docker容器
通常连接Docker容器并与其进行交互有四种方法.详情见:https://github.com/berresch/Docker-Enter-Demo,下面摘录nsenter连接的方式. 查看是否安装n ...
- C++实现双缓冲
首先声明下,这篇资料也是整理别人的资料的基础上,总结来的. 在图形图像处理过程中,双缓冲技术是一种比较常见的技术.窗体在响应WM_PAINT消息时,需要对图像进行绘制处理.如果图像绘制次数过多,重绘过 ...
- ios Tabbar Item 的图标
1,tabBarItem图片的推荐尺寸和最大支持尺寸 下面是标签栏(UITabBar)中tab按钮图标分别在1x.2x.3x下不会压缩变形的尺寸: @1x : 推荐 25 x 25 (最大: 48 ...
- Qt QThread 多线程使用
一.继承QThread 使用方法 1.创建个继承QThread的类. #ifndef MYTHREAD_H #define MYTHREAD_H #include <QObject> #i ...
- Windows下用python编写简单GUI程序的方法
Python实现GUI简单的来说可以调用Tkinter库,这样一般的需求都可以实现,显示简单的windows窗口代码如下: python_gui.py #!C:\Python27\python.exe ...
- effective OC2.0 52阅读笔记(三 接口与API设计)
第三章:接口与API设计 15 用前缀避免命名空间冲突 总结:避免重名符号错误的唯一办法是变相实现命名空间.为所有符号都加上命名前缀.类和分类都应加三字前缀.注意类实现文件中的纯C函数及全局变量,是算 ...