Skip to content

Instantly share code, notes, and snippets.

@drFabio
Created November 18, 2017 20:10
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 drFabio/e6a7b886b649bcb9a07858bc4d707177 to your computer and use it in GitHub Desktop.
Save drFabio/e6a7b886b649bcb9a07858bc4d707177 to your computer and use it in GitHub Desktop.
Init firebase
var config = {
apiKey: "ALGUMA_CHAVE",
authDomain: "pergunteaodev.firebaseapp.com",
databaseURL: "https://pergunteaodev.firebaseio.com",
projectId: "pergunteaodev",
storageBucket: "",
messagingSenderId: "974289796926"
}
firebase.initializeApp(config)
var databaseRef = firebase.database().ref().child('questions')
const createdAt = firebase.database.ServerValue.TIMESTAMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment