Skip to content

Instantly share code, notes, and snippets.

View jburks725's full-sized avatar

Jason Burks jburks725

  • Capital One
  • Maine, USA
View GitHub Profile
@jburks725
jburks725 / export.json
Created August 13, 2014 20:58
Some initial data
{
"containers" : {
"-JUApWC5RZF-LgQmoUxd" : {
"description" : "My house in Maine",
"name" : "Jason's House",
"owner" : "simplelogin:1",
"parent": false,
"children" : {
"-JUApygMzgusoiSlvV-0" : true,
"-JUApygMasdbiSlvV-0b" : true
@jburks725
jburks725 / gist:1ad9d8a14a1351941bc8
Last active January 19, 2018 01:37
Firebase pros and cons

So here's what I have for Firebase pros and cons so far:

Pros:

  • Autoscaling built-in
  • Can start for free (only need to start paying once we hit 50 connections)
  • Robust APIs for Javascript (including several frameworks like Angular), iOS, and Android
  • Built-in support for authentication services like Facebook, Google, and Twitter
  • Declarative Security Rules model allows us to enforce read/write privileges and data validation throughout the tree

Cons:

@jburks725
jburks725 / inventorymgmt.js
Last active August 29, 2015 14:05
Some Firebase code
var appURI = "https://flickering-fire-3648.firebaseio.com/";
var imRef = new Firebase(appURI);
var uid = null;
var auth = new FirebaseSimpleLogin(imRef, function(error, user) {
if (error) { console.log(error) }
else if(user) {
uid = user.uid;
userRef = imRef.child('users').child(user.uid);