Skip to content

Instantly share code, notes, and snippets.

@AshV
Created June 9, 2019 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AshV/2a25c5fc0d292459199eef0b92f91035 to your computer and use it in GitHub Desktop.
Save AshV/2a25c5fc0d292459199eef0b92f91035 to your computer and use it in GitHub Desktop.
<!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