firebase-cljs Api Documentation

Version: 1.3.0

firebase-cljs.core

->cljs

Converts a js object to a clj hashmap.

fb

Shortcut for js/firebase.

get-app

(get-app)(get-app aname)

Returns the selected Firebase Application. Takes an optional aname reference to an application, for use in multi-app environments.

get-apps

(get-apps)

Returns all the initialized Firebase Applications.

get-auth

(get-auth)(get-auth app)

Returns the Firebase Auth service for the selected Firebase Application. Takes an optional app reference to an application, for use in multi-app environments.

get-db

(get-db)(get-db app)

Returns the Firebase Database service for the selected Firebase Application. Takes an optional app reference to an application, for use in multi-app environments.

get-storage

(get-storage)(get-storage app)

Returns the Firebase Storage service for the selected Firebase Application. Takes an optional app reference to an application, for use in multi-app environments.

get-version

(get-version)

Returns the current Firebase SDK version.

init

(init opts)(init opts aname)

Initializes Firebase Application. Takes opts map and optionally, an app name.

opts must contain the following keys for use in the browser:

{:apiKey FIREBASE_API_KEY

:authDomain FIREBASE_AUTH_DOMAIN

:databaseURL FIREBASE_DATABASE_URL

:storageBucket FIREBASE_STORAGE_BUCKET}

aname may optionally be a name to reference this application, for use in multi-app environments.