beego is a Go Framework inspired by tornado and sinatra.
beego is an open-source, high-performance, modular, full-stack web framework.
More info beego.me
beegae is a port of beego intended to be used on Google's AppEngine. There are a few subtle differences between how beego and beegae initalizes applications which you can see for yourself here example
The aim of this project is to keep as much of beego unchanged as possible in beegae.
- Datastore + Memcached backed session store! read more here to learn how to use it.
AppEngineCtx
is part of the default Controller. View the included sessions package documentation for an example of using it!
This will be a quick overview of how to setup the repository and get started with beegae on AppEngine. It is already assumed that you have setup the AppEngine SDK for Go correctly and setup your GOPATH correctly
# goapp get github.com/astaxie/beegae
# goapp get github.com/beego/bee
# cd $GOPATH/src
# $GOPATH/bin/bee new hellogae
# cd hellogae
- Make a new file app.yaml and fill it as such:
application: hellobeegae
version: 1
runtime: go
api_version: go1
handlers:
- url: /.*
script: _go_app
# gofmt -r '"github.com/astaxie/beego" -> "github.com/astaxie/beegae"' -w ./
# gofmt -r 'beego -> beegae' -w ./
# mkdir main && mv main.go main/ && mv app.yaml main/ && mv conf/ main/ && mv views/ main/ && cd main/
- Now open
main.go
and changefunc main()
tofunc init()
# goapp serve
- Done!
beego is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).