@greenhousegames/firebase-reporting

0.1.1 • Public • Published

Firebase Reporting

The client-side only solution to reporting with Firebase

Build Status npm version

Overview

Firebase Reporting provides the ability to generate reports on data stored in firebase without needing an alternate reporting database or server! Firebase reporting does all metric calculations on the client using transactions in firebase, ensuring the metrics are reliably calculated regardless of the number of clients attempting to updated the reports.

Firebase reporting is designed to provide simple metrics on the data. For complex reporting, it is suggested to use an alternate database for better performance.

Setup

Templates

Use one of the following templates to get started quickly with Firebase Reporting:

Manual

Add Firebase Reporting to an existing project using npm:

npm install firebase-reporting --save

Integration

Firebase Reporting can be included in a project using the following code:

var FirebaseReporting = require('firebase-reporting');
var reporting = new FirebaseReporting(config);

The FirebaseReporting constructor takes the following configuration object:

{
  firebase: 'object', // reference in firebase for where to store results
  separator: 'string' // string used as separator in firebase database keys (defaults to '~~')
}

API

...

Package Sidebar

Install

npm i @greenhousegames/firebase-reporting

Weekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • greenhousegames