Created
June 9, 2019 01:07
-
-
Save AshV/2a25c5fc0d292459199eef0b92f91035 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<script src="https://www.gstatic.com/firebasejs/6.1.1/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/6.1.1/firebase-database.js"></script> | |
<script> | |
var firebaseConfig = { | |
apiKey: "api-key", | |
authDomain: "project-id.firebaseapp.com", | |
databaseURL: "https://outlaystore.firebaseio.com", | |
projectId: "project-id", | |
storageBucket: "project-id.appspot.com", | |
messagingSenderId: "sender-id", | |
appID: "app-id", | |
}; | |
var defaultProject = firebase.initializeApp(firebaseConfig); | |
var chats = firebase.database().ref('AH19/emily/'); | |
chats.on('value', function (snapshot) { | |
// Use this value | |
console.log(snapshot.val()); | |
}); | |
</script> | |
<body /> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment