gap-admin

0.0.1 • Public • Published

Admin interface for Gap.js

Example

const Admin = require('gap-admin');
const mongoose = require('mongoose');

mongoose.connect('mongodb://localhost:27017/my-db');


const db = mongoose.connection;


const UserModel = mongoose.model('user', {
    name: String
});


const admin = new Admin();


admin.addView(Admin.mongoose.View(UserModel));

It implements CRUD operations on database models and provides a convenient interface for interaction

Installation

npm install gap-admin --save

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i gap-admin

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • leggnom