An idea for building Firebase Realtime Database Security Rules

As I learned to write Firebase Realtime Database Security Rules I had quite a few moments where I had to refactor them or where they suddenly stopped working and I wondered why (hint: I changed my app!).

I focused on finishing code before writing security rules and belatedly realized it would have been easier if I’d just written the rules from the start, picking a beginning point and then building them out as I went along.

The series of posts following this post show how to pick a starting point for your rules and how build them out with dependencies gradually.

Hopefully these posts can serve as a syntactical reference for people new to the Realtime Database Security Rules, too.