0.0.1 • Published 7 years ago

gap-admin v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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