ad server
I have used beego MVC framework and visual studio code editor for the development of this project. You can setup the project by following way:
After installing go please set the gopath by following way:
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
export GOPATH=/Users/{your_user_name}/work (In my case it’s ‘rakib’. This will be the work directory)
export PATH=$GOPATH/bin:$PATH
$ go get github.com/astaxie/beego
$ go get github.com/beego/bee
Go to cd $GOPATH/src/ad-server directory
Before you run the project, please change the mysql connection string which will be found in main.go file at line #13.
orm.RegisterDataBase(“default”, “mysql”, “username:password@/ad_server_db?charset=utf8”)
bee run