0.3.1 • Published 3 years ago

brisk-admin v0.3.1

Weekly downloads
32
License
-
Repository
github
Last release
3 years ago

Brisk: Admin

Grant admin access to an application running Brisk

Features

  • Plug & play
  • Role assignement

Dependencies

Install

Using npm:

npm install brisk-admin

Usage

Firstly, sessions need to be already activated in your applications, to allow admin login. Also your AWS credentials need to be loaded in the expected location:

req.site.config.api.aws
  1. Create an admin model that extends the plugin's model
var Parent = require("brisk-admin").getModel("admin");

var model = Parent.extend({
	...
});

module.exports = model;
  1. Initiate the admin middleware in the express config at /config/express.js
...
default: {
	...
	use: {
		admin: false // the negative boolean will not execute the function or pass any setup options
		...
	}
	...
}
  1. Extend your express & handlebars helpers with the brisk-admin helpers. For example:
var Main = require("brisk").getClass("main"),
	Admin = require("brisk-admin").getHelper("handlebars"),
	Parent = Main.inherit(Main, Admin);

Credits

Initiated by Makis Tracend

Distributed through Makesites

Released under the MIT license

0.3.1

3 years ago

0.3.0

7 years ago

0.2.7

8 years ago

0.2.6

10 years ago

0.2.5

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago