go get -v github.com/tools/godep
go get -v github.com/gin-gonic/gin
go get -v github.com/jinzhu/gorm
go get -v github.com/json-iterator/go
go get -v github.com/lib/pq
go get -v github.com/inconshreveable/log15
go get -v github.com/kardianos/govendor
go get -v golang.org/x/crypto/bcrypt
go get -v github.com/pilu/fresh
go get -v github.com/Masterminds/glide
Modify $GOPATH\src\github.com\Masterminds\glide\path\winbug.go
Replace
cmd := exec.Command("cmd.exe", "/c", "move", o, n)
With
cmd := exec.Command("cmd.exe", "/c", "xcopy /s/y", o, n+"\\")
go get -u github.com/Masterminds/glide
to build the modified file
go run main.go
curl -X POST \
http://localhost:8080/v2/company/create \
-H 'Content-Type: application/json' \
-d '{
"name": "odenktools",
"email": "[email protected]",
"password": "odenktools86",
"telephone": "0229218391",
"code": "odk86"
}'
curl -X POST \
http://localhost:8080/v2/company/login \
-H 'Content-Type: application/json' \
-d '{
"email": "[email protected]",
"password": "odenktools86"
}'
curl -X GET \
http://localhost:8080/v2/company