Beego Environment equipped

Source: Internet
Author: User
Tags learn golang
This is a created article in which the information may have evolved or changed.

Today boss business trip, to colleagues told me that the company needs to develop a background server through Golang, but currently need to choose Open Source Go-socket.io as WEBAPI or choose Beego Framework as the company's next development Webapi.

Corresponding to just learn Golang basic knowledge for one weeks and have not touched the go web I, now I want to choose the company next to the Go web framework, now I really do not know how to choose. It's a surprise that small companies do have a lot of different things than big ones, but it feels like small companies can actually improve themselves faster. No matter how, first build Go-socket.io and Beego environment, by reading the online information, the morning has successfully built the Go-socket.io and Beego framework of the environment. However, the new Beego project through "bee" encountered a small difficulty, has now been resolved, so record it.

"Reference Document"

However, just by "Go get Github.com/beego/bee" just download and install bee, so when executing "bee New project Name" The Times Wrong said Bee command was not found. The problem is that the running program "Bee.exe" is not loaded into the environment variable, so the error will be made. Simply add the path () of the "Bee.exe" to the environment variable or copy the "Bee.exe" to a directory that has been added to the environment variable.

Installation manual for "Bee" under Windows:

1. Execute with cmd or git bash: Go get Github.com/beego/bee
After a while, the "Github.com/beego/bee" file can be seen under the SRC directory under the Gopath path, and there is "Bee.exe" in the src sibling bin.
2. Add the path of "Bee.exe" to the environment variable or copy "Bee.exe" to a directory that has been added to the environment variable
3. Generate the framework engineering code from the Bee tool: Bee new project name (e.g. Hello)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.