grand-finale
v0.0.1
Published
finale extension
Downloads
13
Readme
grand-finale
Extension module for finale.
Objectives
- Auto Loading of entire exposable Sequelize schema
- Support for arbitrary controllers and endpoints
- Enable schema model definitions collection at api root
Usage
''' const S=require("sequelize"); const _=require("underscore"); const sequelize=new S.Sequelize('postgres://test:test@localhost:5432/test') var express = require('express') var app = express(); sequelize.define('test1',{'field1':{type:S.DataTypes.TEXT(10)}}) const GrandFinale=require("grand-finale") _.extend(S,{ app: app, sequelize: sequelize, directory:'./test/controllers', }) var grand_finale=new GrandFinale(S) grand_finale.initialize()