Generic library for Viron
node-vironlib is a helper library that makes it easy to implement functions that would normally be needed with Viron API Server.
- Authentication
- GoogleOAuth
- email/password
- Admin Role
- Admin User
- Audit Log
- Access Control for CORS
- Pager
- Auto Complete
$ npm install node-vironlib
const app = require('express')();
const VironLib = require('node-vironlib');
const vironlib = new VironLib({...}); // @see https://cam-inc.github.io/viron-doc/docs/adv_vironlib.html
// middleware
app.use(vironlib.swagger.middlware());
app.use(vironlib.auditLog.middleware());
app.use(vironlib.auth.google.middleware());
app.use(vironlib.adminRole.middleware());
app.use(vironlib.bodyCompletion.middleware());
// controller
app.post(vironlib.auth.controller.signIn);
app.post(vironlib.auth.controller.signOut);
app.get(vironlib.swagger.controller.show);
...
npm test
- migration.ja.md
-
1.7.0
-
CA Mobile, Inc. All rights reserved.
@see : LICENSE