Listen to anonymous usage pings sent from React Storybook.
Currently this only has two routes and save it directly to BigQuery.
- set GOOGLE_JWT(string of the google cloud service account json key with BQ access EDIT/WRITE), AUTH_SECRET(basic auth password for graphql api)
npm start
- Install google cloud sdk from here or homebrew
brew install Caskroom/cask/google-cloud-sdl
- Login and configure the project using
gcloud init
- run the required query using
bq query "$(cat scripts/<script name>.sql)"
- Adjust the
BETWEEN
parameters in the scripts to change the dates/windows etc..