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/beepackage using thego getcommand, as follows:
$ go get github.com/beego/bee- Open a terminal to your
$GOPATH/srcdirectory and create a project using thebee newcommand, 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 runto 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...