1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 15:10:56 +00:00
beego mirror
Go to file
2020-12-13 15:43:21 +08:00
.github Add stale.yml 2020-09-19 23:54:33 +08:00
adapter Merge pull request #4329 from jianzhiyao/fix-3865 2020-12-01 11:52:53 +08:00
client fix issue #4331 2020-12-01 17:18:30 +08:00
core change the globalInstance to read conf/app.conf 2020-11-25 20:16:41 +08:00
server/web remove flag of XSRF cookie 2020-12-12 23:26:03 +08:00
task fix issue#4305: add write lock for map adminTaskList iteration and modify 2020-11-11 17:14:05 +08:00
test Refactor orm filter 2020-08-18 14:31:06 +00:00
.gitignore Fix UT 2020-08-05 07:25:34 +00:00
.travis.yml remove pkg directory; 2020-10-08 18:29:36 +08:00
build_info.go update doc 2020-12-12 22:30:44 +08:00
CONTRIBUTING.md Remove scripts directory; update readme 2020-10-08 23:18:10 +08:00
doc.go remove pkg directory; 2020-10-08 18:29:36 +08:00
go.mod Upgrade toml version 2020-10-14 00:25:31 +08:00
go.sum Upgrade toml version 2020-10-14 00:25:31 +08:00
LICENSE update all files License 2014-05-17 02:26:50 +08:00
README.md update read me: add architecture ssection 2020-12-13 15:43:21 +08:00

Beego Build Status GoDoc Foundation Go Report Card

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.

architecture

Beego is compos of four parts:

  1. Base modules: including log module, config module, governor module;
  2. Task: is used for running timed tasks or periodic tasks;
  3. Client: including ORM module, httplib module, cache module;
  4. Server: including web module. We will support gRPC in the future;

Quick Start

Officail website

Example

If you could not open official website, go to beedoc

Web Application

Http Request

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
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

Modules

Community

License

beego source code is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).