Skip to content

tonila/node_acl_firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NODE ACL - Firebase backend

This adds firebase backend support and tests to NODE ACL

NOTE: THIS PROJECT IS NOT MAINTAINED.

I suggest using other acl backends.

Installation

Using npm:

npm install acl-firebase

Usage

Register at firebase.com and create app. Create Firebase instance at your node.js application. You can use any path desired. Create acl module by requiring it and instantiating it with Firebase backend instance:

// require Firebase and get instance to firebase path
var Firebase = require('firebase');
var fb = new Firebase('https://put-firebase-address-here/');

// enable firebase client data caching by using on() listener (optional)
fb.on('value', function(dataSnapshot) {
  // no need to do anything here
});

// require acl and create Firebase backend
var acl = require('acl');
acl = new acl(new acl.firebaseBackend(fb));

Documentation

See NODE ACL documentation

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published