Skip to content

giulianobr/bqtop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BQTop

This repository contains the BQTop utility for viewing running and finished Big-Query jobs.

alt text

Setup

Firebase

  1. In your google cloud project create a Firebase project.
  2. Go to overview page and press Add Firebase to your web app
  3. Copy the following keys: apiKey, authDomain, databaseURL storageBucket
  4. Navigate to the Service Accounts tab in your project's settings page.
  5. Select your Firebase project.
  6. Generate New Private Key at the bottom of the Firebase Admin SDK section of the Service Accounts tab.
  7. After you click the button, a JSON file containing your service account's credentials will be downloaded.
  8. Rename the file bqtop-service-account.json and save it in the cli directory.
  9. Install gcloud tools. Please follow the official documentation
  10. Run ./install.sh projectId

CLI

  1. Make sure that you have python 3 installed.
  2. Go to the cli directory and run pip install -r requirements.txt
  3. Create a config file (config.json) with the values you copied in the Firebase setup process.
{
     "apiKey": "apiKey",
     "authDomain": "projectId.firebaseapp.com",
     "databaseURL": "https://databaseName.firebaseio.com",
     "storageBucket": "projectId.appspot.com",
     "serviceAccount": "bqtop-service-account.json"
 }

Web Application

  1. Create .env.production in firebase/ui with the values you copied in the Firebase setup process.
REACT_APP_FIREBASE_API_KEY="apiKey"
REACT_APP_FIREBASE_AUTH_DOMAIN="authDomain"
REACT_APP_FIREBASE_DATABASE_URL="databaseURL"
REACT_APP_FIREBASE_PROJECT_ID="projectId"
REACT_APP_FIREBASE_STORAGE_BUCKET="storageBucket"
  1. In Firebase console Authentication page, enable Google as sign-in provider.
  2. OPTIONAL: Edit firebase rules to allow specific logged in users to read data instead of any authenticated user.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.5%
  • Python 18.3%
  • Shell 10.3%
  • HTML 5.4%
  • CSS 2.5%