/go-restapi-example

A prototype example for development team to follow for REST API development.

Primary LanguageGo


REST API Prototype


Prerequisites running simprints

Install Golang. Using GVM and Golang 1.12.4 is recommended

Running

GCLOUD_PROJECT=your-gcp-project go run cmd/mywebapp/main.go

Testing

GCLOUD_PROJECT=your-gcp-project go test ./... -count=1

Need to set the auth credential path export GOOGLE_APPLICATION_CREDENTIALS ="/home/user/Downloads/[FILE_NAME].json"