beego bee tool mirror
Go to file
Zheng Yang 478cbb39b9 minor update 2014-08-29 15:17:22 +08:00
testdata/router Added func getControllerInfo 2013-07-27 09:44:44 +08:00
.gitignore Update color ouput 2013-08-15 15:24:23 +08:00
LICENSE Update LICENSE 2013-10-30 19:54:53 -04:00
README.md minor update 2014-08-29 15:17:22 +08:00
apiapp.go added example in api usage 2014-08-22 16:16:22 +08:00
autorouter.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
autorouter_test.go Added func getControllerInfo 2013-07-27 09:44:44 +08:00
bale.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
bee.go version++ 2014-08-22 16:31:07 +08:00
bee.json remove mysql conn str from default 2014-08-22 15:51:21 +08:00
code.go Added func getControllerInfo 2013-07-27 09:44:44 +08:00
conf.go remove mysql conn str from default 2014-08-22 15:51:21 +08:00
g.go help msg 2014-08-22 15:52:58 +08:00
g_appcode.go truncate before overwritten 2014-08-28 17:31:37 +08:00
g_controllers.go add downsql & controller add mapping 2014-08-18 12:21:21 +08:00
g_docs.go bee api create a new api from database 2014-08-09 00:55:55 +08:00
g_migration.go do not rely on goimports 2014-08-19 17:00:37 +08:00
g_model.go import logic for model by asta 2014-08-19 17:11:38 +08:00
g_scaffold.go add downsql & controller add mapping 2014-08-18 12:21:21 +08:00
g_views.go bee generate scaffold model 2014-08-11 17:01:06 +08:00
migrate.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
new.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
pack.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
run.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
rundocs.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
test.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
util.go format the log time 2014-08-23 14:15:42 +08:00
version.go return actual value from subcommand 2014-08-15 17:38:51 +08:00
watch.go bee default support watchall support generate doc 2014-06-18 21:31:54 +08:00

README.md

bee

Build Status

Bee is a command line tool facilitating development with beego framework.

Requirements

  • Go version >= 1.1.

Installation

Begin by installing bee using go get command.

go get github.com/beego/bee

Then you can add bee binary to PATH environment variable in your ~/.bashrc or ~/.bash_profile file:

export PATH=$PATH:<your_main_gopath>/bin/bee

If you already have bee installed, updating bee is simple:

go get -u github.com/beego/bee

Basic commands

Bee provides a variety of commands which can be helpful at various stage of development. The top level commands include:

new         create an application base on beego framework
run         run the app which can hot compile
pack        compress an beego project
api         create an api application base on beego framework
bale        packs non-Go files to Go source files
version     show the bee & beego version
generate    source code generator
migrate     run database migrations

Shortcuts

Because you'll likely type these commands over and over, it makes sense to create aliases.

# Generator Stuff
alias g:a="bee generate appcode"
alias g:m="bee generate model"
alias g:c="bee generate controller"
alias g:v="bee generate view"
alias g:mi="bee generate migration"

These can be stored in, for example, your ~/.bash_profile or ~/.bashrc files.