Combining Firebase Rules for My Sanity

I've been working on replacing the Kids In Touch API with Firebase. I've struggled a bit with the rules system. It's pretty complicated putting the rules for an entire API in a single, understandable file. To help with this, Firebase has released their new Blaze compiler. It seems pretty awesome…

AngularJS Form Names Conflict with Scope Methods

I discovered a strange little problem today. When working with forms in Angular, the form name cannot be the same as the name of a method on the scope. Example: <form name="changePassword" ng-submit="changePassword()"> <input type="password" ng-model="data.password" /> </form> ... $scope.changePassword…

User Authentication with Ionic and Firebase

I'm rewriting Kids In Touch right now with Firebase as the backend. I'm really pleased with how things are going. Developing with Firebase is so much easier than dealing with my old REST API. Today, I was dealing with logging users into the app. Most examples I found online have…

Firebase Validation hasChildren() Pro Tip

So, I'm chugging along with testing data validation in Firebase. Everything was going okay with my tests. I could block invalid data and accept valid data. tl;dr : If you use .hasChildren() validation, you must include a validation rule for every property you are requiring. Original Rules: { "rules": { ".write": false…

Firebase Data Validation

Yesterday, I explained how I chose to start testing Firebase for taking over the Kids In Touch API. I mentioned that all was not roses. I'll go over one of my biggest issues with the service here. Rules Based API With Firebase, you don't write any server side code. Unlike…

Comparing Firebase to PubNub

I've been testing Firebase lately and considering using it to replace my own backend for Kids In Touch. I'm liking Firebase very much. The two way syncing is so fast and smooth. The "three-way binding" with Angular is really nice too. Very importantly, I've been really impressed with the Firebase…