A PubSubHubbub subscriber for goa
$ cd `goapp env GOPATH`
$ mkdir -p src/github.com/blueoceans
$ cd src/github.com/blueoceans
$ git clone --depth 1 https://github.com/blueoceans/goa-pubsubhubbub-subscriber.git
$ cd goa-pubsubhubbub-subscriber
$ go get -u github.com/golang/dep/...
$ dep init
$ dep ensure
$ dev_appserver.py backend
with goa
Install goa:
$ go get -u github.com/goadesign/goa/...
Generate code:
$ goagen app -d github.com/blueoceans/goa-pubsubhubbub-subscriber/design
$ goagen swagger -d github.com/blueoceans/goa-pubsubhubbub-subscriber/design
Get swagger-ui:
$ make swagger-ui
Open swagger-ui.
$ open "http://localhost:8080/swagger-ui/?url=http://localhost:8080/swagger.json"
Create a Google App Engine application:
$ CLOUDSDK_CORE_PROJECT=<APP-ID> gcloud app create
Create TaskQueue and Cron:
$ CLOUDSDK_CORE_PROJECT=<APP-ID> gcloud app deploy backend/queue.yaml
$ CLOUDSDK_CORE_PROJECT=<APP-ID> gcloud app deploy backend/cron.yaml
Deploy to Google App Engine:
$ goapp deploy backend/app.yaml
Get an OAuth 2.0 refresh token:
$ jq .refresh_token ~/.appcfg_oauth2_tokens
Then set to an APP_ENGINE_TOKEN
of the application environment variables on the Wercker CI.