This repository contains the BQTop utility for viewing running and finished Big-Query jobs.
Important: Make sure you do not deploy to a project which already makes use of Firebase Real-Time Database or Hosting.
- 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 Authentication page and enable Google as a sign-in provider.
- Install gcloud tools. Please follow the official documentation
- 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. - 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 step.
{
"apiKey": "apiKey",
"authDomain": "projectId.firebaseapp.com",
"databaseURL": "https://databaseName.firebaseio.com",
"storageBucket": "projectId.appspot.com",
"serviceAccount": "bqtop-service-account.json"
}
- Edit
.env.production.template
in firebase/ui with the values you copied in the Firebase setup process. - Rename
.env.production.template
to.env.production
- OPTIONAL: Edit
database.rules.json
to allow specific users to read data. By default, any authenticated user can read/write to the database. For example:{ // ... ".read": "auth != null && auth.token.email_verified == true && auth.token.email == 'me@example.com'", ".write": "auth != null && auth.token.email_verified == true && auth.token.email == 'me@example.com'" }
- Run
./install.sh PROJECT_ID