This repository contains the BQTop utility for viewing running and finished Big-Query jobs.
- In your google cloud project create a Firebase project.
- Go to overview page and press
Add Firebase to your web app
- Copy the following keys:
apiKey, authDomain, databaseURL storageBucket
- Navigate to the Service Accounts tab in your project's settings page.
- Select your Firebase project.
- Generate New Private Key at the bottom of the Firebase Admin SDK section of the Service Accounts tab.
- After you click the button, a JSON file containing your service account's credentials will be downloaded.
- Rename the file
bqtop-service-account.json
and save it in thecli
directory. - Install gcloud tools. Please follow the official documentation
- Run
./install.sh projectId
- Make sure that you have python 3 installed.
- Go to the cli directory and run
pip install -r requirements.txt
- 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"
}
- 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"
- In Firebase console Authentication page, enable Google as sign-in provider.
- OPTIONAL: Edit firebase rules to allow specific logged in users to read data instead of any authenticated user.