Skip to content

kadirahq/storybook-ping-receiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storybook-ping-receiver

Listen to anonymous usage pings sent from React Storybook.

Currently this only has two routes and save it directly to BigQuery.

Running the app

  • 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

Running the queries

  • 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..

About

Listen to anonymous usage pings sent from storybooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published