Just a Standard Beego Project with an added Route and Html file. It was my first step after creating a standard web project with the Bee tool.
This would be a good learning exercise to help you get started with Beego:
- Make sure Go (golang) is configured on your computer
- Install Beego on your computer (if not already done)
- Install the Bee tool on your computer (if not already done)
- Create a new Beego project somewhere under your $GOPATH using the cli command "bee new beego-test"
- Start the Beego project with "bee run" at the root level of your project directory (it will hot reload when you save changes to your files) and then watch the site as you make changes. (You will still need to press refresh in your browser to get the new changes you make in the file system). You can use this project as a reference if you get stuck
- Edit the index.tpl and default.go files to put your own name in the author place
- Create another route in the controllers folder like the one that is there.
- (Optionally) Create another .tpl file that you can use as the template file for your new route
- Access your new route in your browser
- See if the changes you made match my changes in this project!
- If you get stuck, of course, take a closer look at my Project.