acl-arangodb
ArangoDB backend for acl
Last updated 4 years ago by nharris85 .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install acl-arangodb 
SYNC missed versions from official npm registry.

#NODE ACL - ArangoDB backend This fork adds ArangoDB backend support to NODE ACL

##Status license - MIT BuildStatus

NPM status

Dependency Status devDependency Status

##Installation

Using npm:

npm install acl-arangodb

##Usage Download and install ArangoDB Start ArangoDB with default configuration. Create ArangoDB database object in your node.js application. Create acl module and instantiate it with ArangoDB backend, passing the ArangoDB object into the backend instance.

// require arangojs
var arangojs = require('arangojs');
// Defaults to localhost and '_system' database. See arangojs documentation for configuration options
var db = arangojs();
// Set the database for your ACL. Note: You must create the database if it doesn't exist already.
db.useDatabase('mydb');

// require acl and create ArangoDB backend
var Acl = require('acl');
// Doesn't set a 'prefix' for collections and separates buckets into multiple collections.
acl = new Acl(new Acl.arangodbBackend(db));

// Alternatively, set a prefix and combined buckets into a single collection
acl = new Acl(new Acl.arangodbBackend(db, 'acl_', true));

##Testing Tested using acl's tests runner against ArangoDB v3.0.3

##Documentation See NODE ACL documentation See ArangoDB documentation

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

5 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |