Sunday, December 13, 2015

GO and bee

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
$ go get

Install sample file to verify its working

$ cd $GOPATH/src
$ 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