Resources on how to build complete Golang applications are scarce and not easily found. Coming from a Node.js background, I have built this project to demo a CRUD application in which we can add and delete users with complete frontend integrations following best practises of the Web Development world.
- Install Golang(v 1.11.3 or higher), setup
GOPATH
and make sureGOPATH/bin
is in thePATH
env variable. - Install
beego
cli tool. - Clone this project in a folder outside
GOPATH
(because we are using Go Modules). cd
into the project.- Install all dependencies with
go get -u
. - Rename
.env.example
to.env
and provide the necessary information like Database URI etc. - Start server with
bee run
.