yasinaydin/seqadmin


License: GPL-3.0


SeqAdmin

Very immature Sequelize admin generator.
Use it at your own risk (for now).

Install

npm i seqadmin --save

Usage

Bind it to your Express.js app like

var app = require('express')();
//...
var sequelizeConfig = require('./dbconfig.js');
require('seqadmin')(app, sequelizeConfig);

Then browse to http://localhost:$yourport/admin!

Options

A sample self-explanatory config with some default values:

var options = {
  path: '/admin',
  title: 'SeqAdmin',
  models: {
    User: {
      list: {
        link: 'name',
        hide: ['createdAt', 'updatedAt'],
        query: {
          order: [['name', 'ASC']],
        }
      }
    }
  }
};
require('seqadmin')(app, sequelizeConfig, options);

Project Statistics

Sourcerank 3
Repository Size 0 Bytes
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 3
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Ozgur Yasin Aydin

Packages Referencing this Repo

seqadmin
Very immature Sequelize admin generator. Use it at your own risk (for now).
Latest release 1.0.0 - Updated

Something wrong with this page? Make a suggestion

Last synced: 2018-12-19 00:10:58 UTC

Login to resync this repository