-
Notifications
You must be signed in to change notification settings - Fork 1
Environment Setup Guide
- Python 2.7 is required for the app engine SDK to function, so download and install python (I installed 2.7.10).
- And add python installation path to PATH env variable. (I installed Python to C:\Python27\ so I updated PATH to include “C:\Python27”)
- download app engine SDK (I used go_appengine_sdk_windows_amd64-1.9.24.zip for my windows machine)
- extract app engine SDK (I extracted to C:)
- Note: when you extract, some extract software might cause problems. The default windows extract did not do a good job and the goapp test has thrown tons of “missing function body” errors. 7-zip worked well for me (i used 7z920-x64.msi).
- update environment variables for the app engine SDK;
- update PATH to include “C:\go_appengine” Note: just mention the folder path of the SDK in which you have goroot folder, but do NOT include goroot in the env variable.
- create GOROOT env variable and add the value as “C:\go_appengine\goroot”
Setup the Workspace per the Go recommended format • Create your workspace folder (I used C:\gows) • Create your name space folder within the workspace (I used C:\gows\src\github.com\muly) • Create your project folder within the namespace (I used C:\gows\src\github.com\muly\lifelog). This namespace folder will hold the yaml file, main package folder and also the individual package folders. • Update env variables as below; o added GOPATH: provide the workspace path (I used “C:\gows")
Please note: This is the skimmed down version of the instructions that I prepared based on my understanding of the App Engine Go SDK documentation as well as based on my practice. These instructions worked well for me. I have also tried these instructions several times on a clean slate (but on windows machine), to make sure the environment is reproducible by following these, and these are proven to be good. Please refer to App Engine Go SDK documentation (link below) in case if you have any challenges. https://cloud.google.com/appengine/docs/go/gettingstarted/devenvironment