Interactive static sites with Jekyll, Backbone.js, and Firebase

May 3, 2013

By Chris Smith / @quartzmo

Firebase security rules


{
  "rules": {
    ".read": true,
    "sites": {
      "$site": {
        "topics": {
          "$topic": {
            "comments": {
              "$comment": {
                ".validate": "newData.hasChildren(['username', 'body'])",
                ".write": "auth != null && (auth.username == newData.child('username').val() || auth.username == data.child('username').val())"
              }
            }
          }
        }
      }
    }
  }
}
					

Thank you!

Chris Smith

Twitter: @quartzmo

GitHub: quartzmo

www.scriptybooks.com

blog.scriptybooks.com

www.coffeescriptlove.com