- Install Google App Engine GO SDK: https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go
- Read the Getting Started case in case of need: https://developers.google.com/appengine/docs/go/gettingstarted/devenvironment
- Get ruby (only for SCSS support), compass, bower and claymate (for gumby and front-end)
- safekeeper for generating source with client ids/secrets:
go get github.com/alexandre-normand/safekeeper - Go in
./viewand runclaymate install. - Setup environment variables with the following and run
go generate github.com/alexandre-normand/glukit/app/secrets:
```
LOCAL_CLIENT_ID="google-client-id-for-localhost"
LOCAL_CLIENT_SECRET="google-client-secret-for-localhost"
PROD_CLIENT_ID=""
PROD_CLIENT_SECRET=""
TEST_STRIPE_KEY="stripe-test-key"
TEST_STRIPE_PUBLISHABLE_KEY="stripe-test-publishable-key"
PROD_STRIPE_KEY=""
PROD_STRIPE_PUBLISHABLE_KEY=""
```
- Setup client ids and secrets using the datastore administration UI (as an
osin.cliententity):
* Generate a client secret using something like `openssl rand -base64 24`
* Generate a client id using something like `echo "`openssl rand -hex 14`.mygluk.it"`
* Note the `RedirectUri` expected by the authenticating application (i.e. `x-glukloader://oauth/callback`)
* Create a new `osin.client` entity using those values. The `key.identifier` should match the generated client id.
To make SCSS changes, use compass build or compass watch.
From , execute goapp serve and hit http://localhost:8080.
gcloud app deploy