Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this? #25

Open
theronic opened this issue Mar 11, 2017 · 3 comments
Open

How to use this? #25

theronic opened this issue Mar 11, 2017 · 3 comments

Comments

@theronic
Copy link

A one-line example of how to include this and then use it from Cljs would go a long way :)

@DavidYKay
Copy link

I'm puzzling it together right now. Ping me again in a few weeks and I may be able to write something up.

@burn2delete
Copy link
Member

This lib needs an update, the best usage is currently:
https://github.com/hoplon/brew/blob/master/src/hoplon/firebase.cljs.hl

@torgeir
Copy link

torgeir commented May 25, 2017

Here's an tiny example to kick things off if someone stumbles over here

(ns some.core
  (:require [firebase-cljs.core :as fb]
            [firebase-cljs.auth :as fb.auth]
            [firebase-cljs.database :as fb.database]
            [firebase-cljs.auth.provider :as fb.auth.provider]
            ))

(defonce fb-init
  (do
    (fb/init
      {:apiKey ""
       :authDomain ""
       :databaseURL ""
       :storageBucket ""})
    (fb.auth/login-popup
      (fb/get-auth)
      (fb.auth.provider/google))))

(defonce db (fb/get-db))
(fb.database/reset! db {:it "works"})
(fb.database/remove! db)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants