mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 15:30:54 +00:00
beego mirror
.github | ||
adapter | ||
client | ||
core | ||
server/web | ||
task | ||
test | ||
.gitignore | ||
.travis.yml | ||
build_info.go | ||
CONTRIBUTING.md | ||
doc.go | ||
go.mod | ||
go.sum | ||
LICENSE | ||
README.md |
Beego
Beego is used for rapid development of enterprise application in Go, including RESTful APIs, web apps and backend services.
It is inspired by Tornado, Sinatra and Flask. beego has some Go-specific features such as interfaces and struct embedding.
Beego is compos of four parts:
- Base modules: including log module, config module, governor module;
- Task: is used for running timed tasks or periodic tasks;
- Client: including ORM module, httplib module, cache module;
- Server: including web module. We will support gRPC in the future;
Quick Start
If you could not open official website, go to beedoc
Web Application
Create hello
directory, cd hello
directory
mkdir hello
cd hello
Init module
go mod init
Download and install
go get github.com/astaxie/beego@v2.0.0
Create file hello.go
package main
import "github.com/astaxie/beego/server/web"
func main() {
web.Run()
}
Build and run
go build hello.go
./hello
Go to http://localhost:8080
Congratulations! You've just built your first beego app.
Features
- RESTful support
- MVC architecture
- Modularity
- Auto API documents
- Annotation router
- Namespace
- Powerful development tools
- Full stack for Web & API
Modules
Community
- http://beego.me/community
- Welcome to join us in Slack: https://beego.slack.com, you can get invited from here
- QQ Group Group ID:523992905
- Contribution Guide.
License
beego source code is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).