Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including node-vironlib with all npm packages installed. Try it out:

var nodeVironlib = require("node-vironlib")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

node-vironlib v1.6.6

Generic library for Viron

node-vironlib

Generic library for Viron

npm MIT License npm node

概要

node-vironlibは、Viron API Serverで一般的に必要になるであろう機能を容易に実装出来るようにするヘルパーライブラリです。

機能

クイックスタート

インストール

$ 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

Copyright

CA Mobile, Inc. All rights reserved.

LICENSE

@see : LICENSE

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free