-
Notifications
You must be signed in to change notification settings - Fork 4
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
Comments
I'm puzzling it together right now. Ping me again in a few weeks and I may be able to write something up. |
This lib needs an update, the best usage is currently: |
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
A one-line example of how to include this and then use it from Cljs would go a long way :)
The text was updated successfully, but these errors were encountered: