Skip to content

Instantly share code, notes, and snippets.

@liamr
Forked from Ehesp/index.html
Created September 1, 2020 13:53
Show Gist options
  • Save liamr/89a3c770b155c42fcf937e5b85773483 to your computer and use it in GitHub Desktop.
Save liamr/89a3c770b155c42fcf937e5b85773483 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/6.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.0.4/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