Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcel mabez

View GitHub Profile
@mabez
mabez / index.js
Last active Sep 1, 2017
Uma function do google cloud que conecta com o firebase
View index.js
var functions = require('firebase-functions');
var admin = require('firebase-admin');
var code = 404;
var result = "{\"message\": \"not found\"}";
var debug = '';
admin.initializeApp(
{...},
databaseURL: "https://amigosecreto-7d398.firebaseio.com/"