Skip to content

Instantly share code, notes, and snippets.

@Ehesp
Last active May 17, 2024 04:23
Show Gist options
  • Save Ehesp/46a68de3e2760dc2677fec837a285f74 to your computer and use it in GitHub Desktop.
Save Ehesp/46a68de3e2760dc2677fec837a285f74 to your computer and use it in GitHub Desktop.
Firebase Web SDK Scratch Pad
<!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