Creating your first project using Beego
The first and the foremost thing we have to do to start a project is to set up its basic architecture. In Beego, this can be achieved easily using a tool called bee
, which we will cover in this recipe.
How to do it…
- Install the
github.com/beego/bee
package using thego get
command, as follows:
$ go get github.com/beego/bee
- Open a terminal to your
$GOPATH/src
directory and create a project using thebee new
command, as follows:
$ cd $GOPATH/src $ bee new my-first-beego-project
Once the command has executed successfully, it will create a new Beego project, and the creation steps on the console will look like the following screenshot:

- Go to the path of the newly created project and enter
bee run
to compile and run the project, as follows:
$ cd $GOPATH/src/my-first-beego-project $ bee run
Once, command has executed successfully, bee
will build the project and start the application, as shown in the following screenshot:

How it works…
Once the command has executed...