Code Monkey home page Code Monkey logo

bqtop's Introduction

BQTop

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

alt text

Setup

Important: Make sure you do not deploy to a project which already makes use of Firebase Real-Time Database or Hosting.

Firebase Setup

  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 Authentication page and enable Google as a sign-in provider.
  5. Install gcloud tools. Please follow the official documentation

CLI

  1. Navigate to the Service Accounts tab in your project's settings page.
  2. Select your Firebase project.
  3. Generate New Private Key at the bottom of the Firebase Admin SDK section of the Service Accounts tab.
  4. After you click the button, a JSON file containing your service account's credentials will be downloaded.
  5. Rename the file bqtop-service-account.json and save it in the cli directory.
  6. Make sure that you have python 3 installed.
  7. Go to the cli directory and run pip install -r requirements.txt
  8. 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"
 }

Web Application

  1. Edit .env.production.template in firebase/ui with the values you copied in the Firebase setup process.
  2. Rename .env.production.template to .env.production
  3. 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 == '[email protected]'",
        ".write": "auth != null && auth.token.email_verified == true && auth.token.email == '[email protected]'"
    }

Deployment

  • Run ./install.sh PROJECT_ID

bqtop's People

Contributors

avivl avatar dependabot[bot] avatar dror88 avatar spark2ignite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.