go get github.com/astaxie/beegogo get github.com/beego/beego get github.com/satori/go.uuidgo get github.com/smartystreets/goconvey/conveygo get github.com/astaxie/beego/ormgo get github.com/go-sql-driver/mysqlcp conf/app.conf.dist conf/app.conf
Note:
echo "export GOPATH=/var/www/golang" >> ~/.zshrcandecho "export GOROOT=/usr/lib/go" >> ~/.zshrc
$GOPATH/bin/bee run- Generate docs
$GOPATH/bin/bee generate docs, run$GOPATH/bin/bee run -downdoc=trueto download swagger. - Webpack
- For
runmode = prodgenerate assetsNODE_ENV='production' ./node_modules/.bin/webpack -p - For
runmode = devrun./node_modules/.bin/webpack-dev-server --progress --colors --port 8081 --content-base=static/
- For
- Go to http://localhost:8080, API http://localhost:8080/swagger/
- Tests
go test ./...orgo test ./tests
docker-compose uprun server and generate API docs- Webpack
- For
runmode = prodgenerate assetsNODE_ENV='production' ./node_modules/.bin/webpack -p - For
runmode = devrun./node_modules/.bin/webpack-dev-server --progress --colors --port 8081 --content-base=static/
- For
- Uncomment
testDB()incontrollers/main.go:init()to test the ORM. - Go to http://localhost:8080, API http://localhost:8080/swagger/, MySQL UI http://localhost:8090
- Tests
./bin/go test ./...or./bin/go test ./tests
Note:
./bin/go- make a container and run the command,./bin/go envto show containers env variables.
- User.
- Data picker and format data on client.
- ORM.