Beego 는 Go로 만들어진 웹프레임 워크입니다.

astaxie/beego

Beego는 인터페이스 및 구조체와 같은 Go 언어의 고유 기능이 통합된 API, Web App, Backend Service의 빠른 개발을 위한 RESTFUL HTTP 프레임워크 입니다.

Beego는 독립적으로 사용하거나 HTTP 로직에 포함하여 사용 할 수 있는 8개의 모듈을 자체적으로 제공합니다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c67899b0-518e-457d-9642-4f8d1233d8b4/architecture.png

Beego는 일반적인 MVC(Model-View-Controller)구조를 사용합니다.

일반적인 프로젝트 구조는 다음과 같습니다.

├── conf
│   └── app.conf
├── controllers
│   ├── admin
│   └── default.go
├── main.go
├── models
│   └── models.go
├── static
│   ├── css
│   ├── ico
│   ├── img
│   └── js
└── views
    ├── admin
    └── index.tpl

Quick Start

# package install
go get github.com/astaxie/beego
// main.go
package main
import "github.com/astaxie/beego"
func main(){
    beego.Run()
}

Bee

beego/bee

bee는 빠르게 Beego 개발을 하기위한 개발 도구 입니다. bee를 이용하면 Beego를 빠르고 편하게 컴파일, 리로드, 개발, 테스트, 배포를 할 수 있습니다.

# package install
go get github.com/beego/bee

Usage:
    bee command [arguments]
The commands are:
    new         Create a Beego application
    run         run the app and start a Web server for development
    pack        Compress a Beego project into a single file
    api         create an API Beego application
    bale        packs non-Go files to Go source files
    version     show the bee, Beego and Go version
    generate    source code generator
    migrate     run database migrations