-
Notifications
You must be signed in to change notification settings - Fork 1
Environment Setup Guide
setup Python
- Python 2.7 is required for the app engine SDK to function, so download and install python (I installed
2.7.10
).
update env variables as below
- And add python installation path to PATH env variable. (I installed Python to
C:\Python27\
so I updatedPATH
to includeC:\Python27
)
setup the SDK
- 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 includeC:\go_appengine
Note: just mention the folder path of the SDK in which you havegoroot
folder, but do NOT includegoroot
in the env variable. - create
GOROOT
env variable and add the value asC:\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;
- added
GOPATH
: provide the workspace path (I usedC:\gows
)
get lifelog project code from github
Install your favorite IDE, but please keep note that it might be tricky to have code completion work on your IDE as, I believe, for the code completion to work, it requires the Go installation, and it will conflict with the app engine env variables, if not carefully done.
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