Last active
May 17, 2024 04:23
-
-
Save Ehesp/46a68de3e2760dc2677fec837a285f74 to your computer and use it in GitHub Desktop.
Firebase Web SDK Scratch Pad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<body> | |
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-database.js"></script> | |
<script> | |
// TODO: Replace the following with your app's Firebase project configuration | |
var firebaseConfig = { | |
apiKey: "", | |
authDomain: "", | |
databaseURL: "", | |
projectId: "", | |
storageBucket: "", | |
messagingSenderId: "", | |
appId: "" | |
}; | |
// Initialize Firebase | |
firebase.initializeApp(firebaseConfig); | |
async function run() { | |
// var ref = firebase.database().ref('tests/web/orderByChild'); | |
// await ref.set({ | |
// a: 'foo', | |
// b: 'bar', | |
// c: 'baz', | |
// }); | |
} | |
run(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment