Get started with Go and Bee framework
brew install go
set following in .bash_profile
export PATH=$PATH:/usr/local/opt/go/libexec/bin
export GOPATH=/Users//goapp
(Instead of username, use path to your home directory)
With this you can access go on command prompt, and when you install bee packages it automatically go to go path you have set.
$ go get github.com/astaxie/beego
$ go get github.com/beego/bee
Install sample file to verify its working
$ cd $GOPATH/src
$ bee new hello
$ cd hello
$ bee run
$ bee new hello
$ cd hello
$ bee run
In case you want to run the application on different port, open app.conf and update the parameters. It's self-explanatory.
You will be able to see the welcome screen.
No comments:
Post a Comment